/* Form Popup Styles */
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-popup-overlay.show {
    display: flex;
}

.form-popup-modal {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-popup-header {
    position: relative;
    padding: 15px 20px 0;
}

.form-popup-close {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    font-size: 28px;
    color: #525252;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.form-popup-content {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.form-popup-left {
    flex: 1;
    padding-right: 20px;
}

.form-popup-logo {
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.logo-sub {
    font-size: 14px;
    color: #666;
    line-height: 1;
    margin-top: 2px;
}

.form-popup-description {
    margin-bottom: 25px;
}

.form-popup-description p {
    color: #737373;
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 3.5rem;
}

.form-popup-partners h4 {
    color: #3D3D3D;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 1.5rem;
}

.partner-logos img{
    width: 100%;
    height: auto;
}

.partner-logo {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: #e9ecef;
    border-color: #ff6b35;
}

.form-popup-right {
    flex: 1.3;
    padding: 24px;
    border-radius: 16px;
    border: 4px solid #FDBB95;
    background: #FFF;
}

.form-popup-form h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E5E5E5;
}

.form-group input::placeholder {
    color: #999;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code {
    flex-shrink: 0;
}

.country-code select {
    width: 80px;
    padding: 12px 8px;
    text-align: center;
}

.phone-group input {
    flex: 1;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-popup-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-popup-left,
    .form-popup-right {
        padding: 0;
    }
    
    .form-popup-right {
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding-top: 20px;
    }
    
    .partner-logos {
        grid-template-columns: 1fr;
    }
    
    .form-popup-modal {
        margin: 10px;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .form-popup-content {
        padding: 15px;
    }
    
    .form-popup-left {
        padding-right: 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 12px;
    }
}

/* Animation for popup */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.form-popup-modal {
    animation: popupSlideIn 0.3s ease-out;
}

/* Form validation styles */

.form-group.error .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group.success input,
.form-group.success select {
    border-color: #E5E5E5;
}

/* Disabled state for submit button */
.submit-btn:disabled {
    background: #FDBB95 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading state for submit button */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Thank You Message Styles */
.thank-you-message {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.thank-you-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-icon svg {
    animation: checkmarkBounce 0.6s ease-out 0.3s both;
}

.thank-you-message h3 {
    color: #28a745;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.thank-you-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.thank-you-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.thank-you-details p {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.thank-you-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thank-you-details li {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.thank-you-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.close-thank-you-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out 0.8s both;
}

.close-thank-you-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.close-thank-you-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments for thank you message */
@media (max-width: 768px) {
    .thank-you-message {
        padding: 15px;
    }
    
    .thank-you-message h3 {
        font-size: 24px;
    }
    
    .thank-you-message p {
        font-size: 14px;
    }
    
    .thank-you-details {
        padding: 15px;
    }
    
    .close-thank-you-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}
