/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8B4513;
}

/* Back Button Styles */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.back-btn:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    color: white !important;
}

.back-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.franchise-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* Header Section */
.franchise-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Simple Form Styles */
.franchise-form {
    padding: 40px;
}

.franchise-form h3 {
    color: #8B4513;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.form-step h3 {
    font-size: 1.8rem;
    color: #2c1810;
    margin-bottom: 30px;
    font-weight: 600;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Submit */
.form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-submit .btn-primary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-submit .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #A0522D, #8B4513);
}

/* Franchise Status Page Styles */
.status-header {
    text-align: center;
    margin: 40px 0;
}

.status-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.status-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.status-form-container {
    max-width: 500px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.status-submit-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-submit-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.status-result {
    max-width: 800px;
    margin: 0 auto;
}

.application-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e74c3c;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.app-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-verified {
    background: #d1ecf1;
    color: #0c5460;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.app-details p {
    margin: 10px 0;
    color: #34495e;
}

.app-details strong {
    color: #2c3e50;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 10px;
    color: #e74c3c;
}

.no-application {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #6c757d;
    font-size: 1.1rem;
}

.no-application i {
    margin-right: 10px;
    color: #17a2b8;
}

.error-message {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
}

.error-message i {
    margin-right: 10px;
}

/* Email Verification Modal */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.verification-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    margin: 20px 0;
}

.verification-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.verification-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-cancel {
    background: #7f8c8d;
    color: white;
}

.verification-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.verification-message {
    margin-top: 15px;
}

.verification-message .success {
    color: #27ae60;
    background: #d5f4e6;
    padding: 10px;
    border-radius: 5px;
}

.verification-message .error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .verification-buttons {
        flex-direction: column;
    }
    
    .verification-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }

    .container {
        margin: 0 auto;
        padding: 0 0px;
    }
    
    /* Mobile Back Button Styles */
    .back-btn {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .back-btn span {
        display: none;
    }
    
    .back-btn i {
        font-size: 16px;
        margin: 0;
    }
    
    .nav-menu {
        gap: 15px;
    }
}



/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    box-sizing: border-box;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 2px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 0 2px;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.mobile-bottom-nav .nav-item.active {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.1);
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item:hover:not(.active) {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.05);
}

.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #d4a574, #c19a5b);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.mobile-bottom-nav .nav-item.active::before {
    width: 30px;
}

/* Responsive Design */
/* More Menu Overlay */
.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.more-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.more-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    max-height: 50vh;
}

.more-menu-overlay.active .more-menu {
    transform: translateY(0);
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.more-menu-header h3 {
    margin: 0;
    color: #8b4513;
    font-size: 18px;
    font-weight: 600;
}

.close-more-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-more-menu:hover {
    background: #f5f5f5;
    color: #8b4513;
}

.more-menu-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.more-menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.more-menu-item:hover {
    background: #f8f4f0;
    color: #8b4513;
    transform: translateX(5px);
}

.more-menu-item i {
    font-size: 18px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #8b4513;
}

.more-menu-item span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .form-container {
        margin: 20px;
        border-radius: 15px;
    }

    .progress-bar {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .progress-bar::before {
        display: none;
    }

    .step-indicator {
        flex-direction: row;
        gap: 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }

    .franchise-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-step h3 {
        font-size: 1.5rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 18px;
    }

    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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