/* ==========================================================================
   Partner Sign-Up Form Styles
   Version: 1.1.1
   Updated: Email sender configuration
   ========================================================================== */

.partner-signup-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* Loading state during form submission */
.partner-signup-form-wrapper.submitting {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.partner-signup-form-wrapper.submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   Messages
   ========================================================================== */

.partner-form-message {
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-family: "Wix Madefor Display", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.partner-form-message.success {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.partner-form-message.error {
    background-color: #fee2e2;
    border: 2px solid #dc2626;
    color: #991b1b;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-family: "Syne", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 24px 0;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.form-field {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-family: "Wix Madefor Display", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.form-field .required {
    color: #dc2626;
    font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    height: auto !important;
    padding: 12px 16px;
    font-family: "Wix Madefor Display", Arial, sans-serif;
    font-size: 15px;
    color: #000000;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="number"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.field-description {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* ==========================================================================
   Date of Birth Fields
   ========================================================================== */

.dob-fields {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
}

.dob-fields select {
    padding: 12px 16px;
}

/* ==========================================================================
   Checkbox Group
   ========================================================================== */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-family: "Wix Madefor Display", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #000000;
}

.checkbox-field {
    margin-bottom: 16px;
}

.checkbox-field .checkbox-label {
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.partner-submit-btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: "Syne", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partner-submit-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.partner-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .partner-signup-form-wrapper {
        padding: 30px 24px;
        margin: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section h3 {
        font-size: 22px;
    }
    
    .dob-fields {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .partner-signup-form-wrapper {
        padding: 24px 20px;
        margin: 20px 16px;
        border-radius: 8px;
    }
    
    .form-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .form-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-field {
        margin-bottom: 20px;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field input[type="number"],
    .form-field textarea,
    .form-field select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .partner-submit-btn {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .partner-form-message {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Dark Theme (Default)
   ========================================================================== */

.partner-signup-form-wrapper {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.form-section {
    border-bottom-color: #2a2a2a;
}

.form-section h3 {
    color: #ffffff;
}

.form-field label {
    color: #ffffff;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="file"],
.form-field textarea,
.form-field select {
    color: #ffffff;
    background: #0a0a0a;
    border-color: #2a2a2a;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="file"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.checkbox-label {
    color: #ffffff;
}

.checkbox-label:hover {
    color: #d1d5db;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #ffffff;
}

.partner-submit-btn {
    background: #ffffff;
    color: #000000;
}

.partner-submit-btn:hover {
    background: #e5e7eb;
}

.field-description {
    color: #9ca3af;
}
