/* Franchise Contact Form Popup */
.franchise-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.franchise-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.franchise-popup-container {
    background: white;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 50px auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.franchise-popup-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari and Opera */
}

/* Success Message Animation */
.franchise-success-message {
    animation: fadeIn 0.5s ease;
}

.success-icon {
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    animation: tickDraw 0.5s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes tickDraw {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.franchise-popup-overlay.active .franchise-popup-container {
    transform: scale(1);
}

.franchise-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #144835;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.franchise-popup-close:hover {
    background: #a2c144;
    transform: rotate(90deg);
}

.franchise-popup-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.franchise-popup-header h2 {
    font-size: 2.2rem;
    color: #144835;
    margin-bottom: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

.franchise-popup-header p {
    color: #666;
    font-size: 1.05rem;
    font-family: 'Jost', sans-serif;
}

.franchise-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.franchise-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.franchise-form-group label {
    color: #144835;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-family: 'Jost', sans-serif;
}

.franchise-form-group input,
.franchise-form-group select,
.franchise-form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    background: #fafafa;
}

.franchise-form-group input:hover,
.franchise-form-group select:hover,
.franchise-form-group textarea:hover {
    background: #f5f5f5;
    border-color: #a2c144;
}

.franchise-form-group input:focus,
.franchise-form-group select:focus,
.franchise-form-group textarea:focus {
    outline: none;
    border-color: #144835;
    background: white;
    box-shadow: 0 0 0 3px rgba(20, 72, 53, 0.1);
}

.franchise-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Jost', sans-serif;
}

.franchise-popup-submit {
    background: linear-gradient(135deg, #144835 0%, #2d5a47 100%);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Jost', sans-serif;
    margin-top: 10px;
    width: 100%;
}

.franchise-popup-submit:hover {
    background: linear-gradient(135deg, #a2c144 0%, #8fb03a 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(162, 193, 68, 0.5);
}

.franchise-popup-submit:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .franchise-popup-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .franchise-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .franchise-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .franchise-popup-container {
        padding: 25px 15px;
    }
    
    .franchise-popup-header h2 {
        font-size: 1.3rem;
    }
    
    .franchise-form-group input,
    .franchise-form-group select,
    .franchise-form-group textarea {
        padding: 10px;
    }
    
    .franchise-popup-submit {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

