/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


.franchise-section {
    width: 100%;
    min-height: 80vh;
    max-height: 80vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%,
            /* dark at left */
            rgba(0, 0, 0, 0) 40%,
            /* fade out */
            rgba(0, 0, 0, 0) 58%,
            /* transparent in middle */
            rgba(0, 0, 0, -0.5) 50%
            /* dark at right */
        ), url(../images/franchise.png) no-repeat center center / cover;
    background-attachment: scroll;
    display: flex;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.franchise-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%,
            /* dark at left */
            rgba(0, 0, 0, 0) 40%,
            /* fade out */
            rgba(0, 0, 0, 0) 58%,
            /* transparent in middle */
            rgba(0, 0, 0, -0.5) 50%
            /* dark at right */
        ), url(../images/franchise.png) no-repeat center center / cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    padding: 40px;
    justify-content: center;
    border-radius: 50px;
    box-sizing: border-box;
}

.franchise-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    color: #fff;
    gap: 30px;
    align-items: center;
    height: 100%;
}

.franchise-left {
    flex: 1 1 55%;
    padding: 20px;
    box-sizing: border-box;
    min-width: 300px;
}

.franchise-left h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.franchise-left p {
    font-size: clamp(16px, 1.5vw, 20px);
    max-width: 450px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.franchise-right {
    flex: 1 1 40%;
    background: rgba(217, 217, 217, 0.6);
    border-radius: 50px;
    padding: 25px;
    color: #0000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* Hide scrollbar for webkit browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    max-width: 425px;
}

.franchise-right::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.franchise-right h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-size: medium;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    text-align: start;
    color: black;
}

.franchise-right p {
    font-size: clamp(12px, 1.2vw, 16px);
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: start;
}

.franchise-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    gap: 10px;
}

.franchise-form input,
.franchise-form select {
    padding: 12px 15px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background: white;
}

.franchise-form input:focus,
.franchise-form select:focus {
    outline: none;
    border-color: #0074D9;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row>div {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-row select,
.form-row input {
    flex: 1;
}

.franchise-form button,
.btn {
    background: #0074D9;
    color: #fff;
    font-size: 15px;
    padding: 12px 15px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0px;
}

.franchise-form button:hover,
.btn:hover {
    background: #005fa3;
    transform: translateY(-1px);
}

.btn-primary {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 12px 15px;
    white-space: nowrap;
    font-size: 13px !important;
}

.downlod-btn {
    background-color: #005fa3;
    border: none;
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.btn-secondary {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 12px 15px;
    white-space: nowrap;
    font-size: 13px !important;
    background: #28a745;
}

.btn-secondary:hover {
    background: #218838;
}

.btn-submit {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    margin-top: 10px;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    background: #ccc;
    transform: none;
}

#franchise-otp-section {
    flex-direction: row;
    align-items: center;
}

#franchise-otp-section input {
    flex: 1;
    margin-right: 10px;
}

.toast-message {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #0074D9;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.toast-message.show {
    display: block;
    opacity: 1;
    top: 40px;
}

.toast-message.error {
    background-color: #c62828;
}

.toast-message.success {
    background-color: #2e7d32;
}

.validation-feedback {
    color: red;
}

/* Tablet Responsive - 768px to 1024px */
@media (max-width: 1024px) {
    .franchise-overlay {
        padding: 30px;
    }

    .franchise-container {
        gap: 20px;
    }

    .franchise-left {
        flex: 1 1 100%;
        text-align: center;
        padding: 15px;
    }

    .franchise-right {
        flex: 1 1 100%;
        max-width: 500px;
        margin: 0 auto;
        max-height: none;
    }
}

/* Mobile Responsive - Below 768px */
@media (max-width: 768px) {
    .franchise-section {
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: none;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/franchise.png') no-repeat center center/cover;
        background-attachment: scroll;
    }

    .franchise-overlay {
        padding: 15px;
        border-radius: 0;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 40px;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/franchise.png') no-repeat center center/cover;
        background-attachment: scroll;
    }

    .franchise-container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }

    .franchise-left {
        flex: 1 1 100%;
        text-align: center;
        padding: 10px;
    }

    .franchise-left h1 {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .franchise-left p {
        font-size: clamp(14px, 4vw, 18px);
        margin: 0 auto;
        max-width: 90%;
    }

    .franchise-right {
        flex: 1 1 100%;
        margin: 0 auto;
        max-width: 100%;
        padding: 20px;
        max-height: none;
        border-radius: 15px;
    }

    .franchise-right h3 {
        font-size: clamp(16px, 5vw, 20px);
        margin-bottom: 8px;
    }

    .franchise-right p {
        font-size: clamp(11px, 3.5vw, 13px);
        margin-bottom: 15px;
    }

    .franchise-form {
        gap: 12px;
    }

    .franchise-form input,
    .franchise-form select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 12px 15px;
    }

    .franchise-form button,
    .btn {
        font-size: 16px;
        padding: 12px 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-row>div {}

    .form-row button,
    .btn-primary,
    .btn-secondary {
        /* width: 100%; */
        min-width: auto;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px !important;
    }

    #franchise-otp-section {
        gap: 12px;
    }

    #franchise-otp-section input {
        margin-right: 0;
    }
}

/* Very Small Mobile - Below 480px */
@media (max-width: 480px) {
    .franchise-overlay {
        padding: 10px;
        padding-top: 30px;
    }

    .franchise-left {
        text-align: start;
    }

    .franchise-right {
        padding: 15px;
        border-radius: 10px;
    }

    .franchise-left h1 {
        font-size: clamp(24px, 9vw, 32px);
        text-align: start;
    }

    .franchise-left p {
        font-size: clamp(13px, 4.5vw, 16px);
        text-align: start;
        padding: 0 0 10px 0;
        margin: 0;
    }

    .franchise-right h3 {
        font-size: clamp(15px, 5.5vw, 18px);
        text-align: start;
    }

    .franchise-right p {
        font-size: clamp(10px, 3.8vw, 12px);
        text-align: start;
    }

    .franchise-form input,
    .franchise-form select,
    .franchise-form button,
    .btn {
        font-size: 15px;
        padding: 11px 12px;
    }

    .downlod-btn {
        padding: 6px 15px;
        border-radius: 10px;
        font-size: 15px;
        margin-top: 5px;

    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .franchise-section {
        min-height: 100vh;
        max-height: none;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/franchise.png') no-repeat center center/cover;
        background-attachment: scroll;
    }

    .franchise-overlay {
        min-height: 100vh;
        padding: 15px;
        align-items: flex-start;
        padding-top: 20px;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/franchise.png') no-repeat center center/cover;
        background-attachment: scroll;
    }

    .franchise-left {
        padding: 10px;
    }

    .franchise-left h1 {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 10px;
    }

    .franchise-left p {
        font-size: clamp(12px, 3vw, 16px);
    }

    .franchise-right {
        padding: 15px;
        max-height: none;
    }

    .franchise-right p {
        margin-bottom: 10px;
    }

    .franchise-form {
        gap: 10px;
    }
}