/* ============================================
   Offer Form Page - Modern Premium Styling
   ============================================ */

/* Section Background */
.offer-form-section {
    background: var(--color-section-bg);
    position: relative;
    overflow: hidden;
}

.offer-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 115, 0, 0.2), transparent);
}

.offer-form-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* background: linear-gradient(90deg, transparent, rgba(255, 115, 0, 0.2), transparent); */
}

/* Wrapper */
.offer-form-wrapper {
    position: relative;
    z-index: 1;
}

/* Info Panel */
.offer-form-info {
    padding: 20px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #F5F7FA;
    line-height: 1.3;
    margin-bottom: 16px;
}

.offer-form-subtitle {
    font-size: 16px;
    color: #B8C1D1;
    line-height: 1.6;
    margin-bottom: 40px;
}

.offer-form-trust-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trust-point-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: #F5F7FA;
}

.trust-point-item i {
    font-size: 24px;
    color: #FF8A00;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 138, 0, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

/* Form Card */
.offer-form-card {
    background: #111B2E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    transition: box-shadow 0.3s ease;
}

.offer-form-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(47, 128, 237, 0.25);
}

/* Form Group Modern */
.form-group-modern {
    margin-bottom: 24px;
}

.form-group-modern label {
    display: block;
    font-weight: 500;
    color: #F5F7FA;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group-modern .text-danger {
    color: #dc3545;
    font-weight: 600;
}

.form-group-modern .text-muted {
    color: #6c757d;
    font-weight: 400;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: #8A94A6;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Modern Input Styling */
.form-control-modern {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    line-height: 1.5;
    color: #F5F7FA;
    background-color: #0F1A30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-control-modern::placeholder {
    color: #8A94A6;
}

.form-control-modern:focus {
    outline: none;
    background-color: #0F1A30;
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

.form-control-modern:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #2F80ED;
}

.form-control-modern.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.form-control-modern.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control-modern.is-valid {
    border-color: #28a745;
}

/* Textarea */
textarea.form-control-modern {
    padding-left: 16px;
    resize: vertical;
    min-height: 120px;
}

/* Error Messages */
.error-message {
    font-size: 13px;
    color: #dc3545;
    margin-top: 6px;
    min-height: 20px;
    display: block;
}

.error-message:empty {
    display: none;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: #0F1A30;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-wrapper:has(input:focus) {
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

.checkbox-wrapper:has(input:checked) {
    background-color: rgba(255, 138, 0, 0.1);
    border-color: #FF8A00;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FF8A00;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:focus {
    outline: 2px solid #2F80ED;
    outline-offset: 2px;
}

.checkbox-label {
    font-size: 14px;
    color: #F5F7FA;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.checkbox-label a {
    color: #FF8A00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #FFA733;
    text-decoration: underline;
}

.checkbox-wrapper:has(input:invalid),
.checkbox-wrapper.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Submit Button */
.btn-offer-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #0B1220;
    background: #FF8A00;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    margin-top: 8px;
}

.btn-offer-submit:hover:not(:disabled) {
    background: #FFA733;
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.4);
    transform: translateY(-1px);
}

.btn-offer-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 115, 0, 0.3);
}

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

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

.btn-spinner i {
    font-size: 20px;
}

.btn-spinner.d-none {
    display: none;
}

/* Privacy Note */
.privacy-note {
    font-size: 12px;
    color: #B8C1D1;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.privacy-note a {
    color: #FF8A00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-note a:hover {
    color: #FFA733;
    text-decoration: underline;
}

/* Alert Messages */
#offerMessage.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

#offerMessage.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#offerMessage.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Success State */
.offer-form-success {
    background: #111B2E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 64px;
    color: #28a745;
}

.success-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #F5F7FA;
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: #B8C1D1;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .offer-form-info {
        padding: 0 0 40px 0;
        text-align: center;
    }
    
    .offer-form-title {
        font-size: 28px;
    }
    
    .offer-form-trust-points {
        align-items: center;
        gap: 20px;
    }
    
    .trust-point-item {
        justify-content: center;
    }
    
    .offer-form-card {
        padding: 30px 24px;
    }
}

@media (max-width: 575.98px) {
    .offer-form-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .offer-form-title {
        font-size: 24px;
    }
    
    .offer-form-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .offer-form-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .form-control-modern {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 18px;
    }
    
    .btn-offer-submit {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .offer-form-success {
        padding: 40px 24px;
    }
    
    .success-icon i {
        font-size: 48px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .success-message {
        font-size: 15px;
    }
}

/* Accessibility - Focus States */
.form-control-modern:focus-visible {
    outline: 2px solid #2F80ED;
    outline-offset: 2px;
}

.btn-offer-submit:focus-visible {
    outline: 2px solid #FF8A00;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .offer-form-section {
        background: #0B1220;
    }
    
    .offer-form-card,
    .offer-form-success {
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

