* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #eb7779 0%, #f4b382 50%, #f5db7a 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.title-section {
    text-align: center;
}

.language-selector {
    position: absolute;
    top: 0;
    right: 0;
}

.language-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.language-select:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    flex: 1;
}

.form-title {
    margin-bottom: 2rem;
}

.form-title h2 {
    color: #eb7779;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #eb7779;
    box-shadow: 0 0 0 3px rgba(235, 119, 121, 0.1);
}

.file-upload-container {
    position: relative;
    width: 100%;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-upload-display:hover {
    border-color: #eb7779;
    background: #fef7f7;
}

.file-upload-display.has-file {
    border-color: #10b981;
    background: #ecfdf5;
    border-style: solid;
}

.file-placeholder {
    color: #6b7280;
    flex: 1;
}

.file-placeholder.has-file {
    color: #065f46;
    font-weight: 500;
}

.file-browse-btn {
    background: #eb7779;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-browse-btn:hover {
    background: #e66b6d;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #eb7779 0%, #f4b382 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(235, 119, 121, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.response-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.response-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.response-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #3b82f6;
}


footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        position: static;
    }
    
    .language-selector {
        position: static;
        order: -1;
        align-self: flex-end;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .file-upload-display {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .file-browse-btn {
        align-self: center;
        width: fit-content;
    }
}

.has-errors input[type="text"],
.has-errors input[type="email"],
.has-errors .file-upload-display {
    border-color: #dc2626;
}

.has-errors input[type="text"]:focus,
.has-errors input[type="email"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}