/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   CONTAINER & CARD
   ============================================ */
.container {
    width: 100%;
    max-width: 900px;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header-icon {
    display: inline-block;
    padding: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.header h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    color: #4a5568;
    font-size: 16px;
}

/* ============================================
   FORM GRID
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 4px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.required {
    color: #e53e3e;
}

.optional {
    color: #718096;
    font-size: 13px;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
    color: #2d3748;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.error-input {
    border-color: #fc8181 !important;
}

.error-input:focus {
    border-color: #fc8181 !important;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1) !important;
}

.helper-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* ============================================
   FILE UPLOAD
   ============================================ */
.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f7fafc;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-area.has-file {
    border-color: #48bb78;
    background: #f0fff4;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.upload-label svg {
    width: 32px;
    height: 32px;
    color: #4a5568;
}

.upload-text {
    font-size: 14px;
    color: #4a5568;
}

.file-name {
    font-size: 13px;
    color: #48bb78;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-section {
    margin-top: 24px;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

/* ============================================
   MESSAGES
   ============================================ */
.message-container {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    display: none;
}

.message-container.success {
    display: block;
    background: #f0fff4;
    border: 2px solid #48bb78;
    color: #22543d;
}

.message-container.error {
    display: block;
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #742a2a;
}

.error-message {
    font-size: 13px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 20px;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    font-size: 14px;
    color: #4a5568;
}

.footer-sub {
    font-size: 12px;
    margin-top: 4px;
    color: #718096;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .card {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header-icon {
        font-size: 28px;
        padding: 14px;
    }
}