/* ====================================
   DANONO'S AESTHETIC REFRESH
   ==================================== */

:root {
    --primary: #EF7D32;
    --primary-dark: #d6641e;
    --accent: #FFAD72;
    --chocolate: #431407;
    --cream: #FFF9F2;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 20px 40px -10px rgba(239, 125, 50, 0.15);
    --shadow-strong: 0 25px 50px -12px rgba(67, 20, 7, 0.25);
    --radius-lg: 24px;
    --radius-xl: 40px;
    --font-main: 'Barlow', sans-serif;
}

body {
    background-color: var(--cream);
    background-image: radial-gradient(#EF7D32 0.5px, transparent 0.5px), radial-gradient(#EF7D32 0.5px, var(--cream) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
    /* Creates a subtle sprinkle texture */
    font-family: var(--font-main);
    color: #555;
}

/* ---- HERO SECTION ---- */
.franchise-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 8% 180px;
    /* Extra bottom padding for the wave */
    overflow: visible;
    gap: 4rem;
}

.hero-text {
    z-index: 2;
}

.badge-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(239, 125, 50, 0.1);
    color: var(--primary);
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.franchise-hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--chocolate);
    margin-bottom: 24px;
    font-weight: 900;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.franchise-hero p {
    font-size: 1.25rem;
    color: #6b5c55;
    margin-bottom: 32px;
    max-width: 500px;
}

/* Floating Shapes Decoration */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: #ffe4d1;
}

.shape-2 {
    bottom: 10%;
    right: 40%;
    width: 200px;
    height: 200px;
    background: #fff0e0;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(239, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 125, 50, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--chocolate);
    border: 2px solid rgba(67, 20, 7, 0.05);
}

.btn-secondary:hover {
    border-color: var(--chocolate);
    background: var(--chocolate);
    color: white;
}

/* Hero Image & Blob */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-blob-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background: #FFDcb8;
    z-index: -1;
    border-radius: 44% 56% 41% 59% / 54% 39% 61% 46%;
    /* Organic blob shape */
    animation: blob-bounce 8s infinite ease-in-out alternate;
}

.floating-img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    transform: rotate(-3deg);
    box-shadow: var(--shadow-strong);
    border: 8px solid white;
}

/* Floating Stat Pill */
.floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: white;
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-strong);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary);
    background: #fff0e6;
    padding: 10px;
    border-radius: 50%;
}

.floating-card span {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.floating-card strong {
    color: var(--chocolate);
    font-size: 16px;
}

/* ---- WHY FRANCHISE (Cards) ---- */
.why-franchise-section {
    position: relative;
    background: transparent;
    /* Let body texture show */
    z-index: 5;
    margin-top: -80px;
    /* Pull up to overlap SVG */
}

.why-franchise-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
}

.why-franchise-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.benefits-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.benefit-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent);
}

.benefit-icon-box {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff0e6, #fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    box-shadow: inset 0 0 10px rgba(239, 125, 50, 0.1);
}

.benefit-title {
    color: var(--chocolate);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

/* ---- STATS & TESTIMONIALS ---- */
.franchise-stats-testimonials {
    background: var(--chocolate);
    padding: 80px 6%;
    color: white;
    text-align: center;
    position: relative;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    /* Glass dark mode */
    padding: 30px 20px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 3rem;
    margin: 0;
    color: var(--accent);
    font-weight: 900;
}

.testimonial-card {
    background: var(--white);
    color: var(--chocolate);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-xl) 0 var(--radius-xl) var(--radius-xl);
    /* Fun uneven corner */
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--accent);
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

.author {
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- FORM SECTION ---- */
.franchise-form-section {
    padding: 80px 6% 120px;
    position: relative;
    z-index: 10;
}

.franchise-form-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Header Styling */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header-title {
    font-size: 3rem;
    color: #431407;
    /* Dark Chocolate */
    font-weight: 900;
    margin: 10px 0;
}

.text-highlight {
    color: #EF7D32;
    /* Orange */
    position: relative;
    display: inline-block;
}

/* Underline decoration for "Journey" */
.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(239, 125, 50, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.form-header-desc {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ---- THE CARD ---- */
.form-card-box {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(67, 20, 7, 0.08),
        0 0 0 10px rgba(255, 255, 255, 0.5);
    /* Double border effect */
    border: 2px solid #FFF0E0;
    position: relative;
    overflow: hidden;
}

/* Decorative "Doughnut" Circle in top right */
.decoration-doughnut {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: transparent;
    border: 25px solid #FFEDD5;
    /* Light Peach Ring */
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

/* ---- GRID LAYOUT (Fixes alignment) ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two Columns */
    gap: 24px;
    position: relative;
    z-index: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
    /* Spans both columns */
}

/* ---- INPUT STYLING (The Aesthetic Fix) ---- */
.form-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #431407;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.required {
    color: #EF7D32;
}

.optional {
    color: #aaa;
    text-transform: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.form-input {
    background: #FFFBF5;
    /* Very light cream/peach */
    border: 2px solid #F0DCCA;
    /* Soft tan border */
    padding: 14px 18px;
    border-radius: 16px;
    /* Bubbly rounded corners */
    font-size: 1rem;
    color: #555;
    font-family: inherit;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    /* IMPORTANT for layout */
}

/* Input Focus State (Glow) */
.form-input:focus {
    outline: none;
    background: #fff;
    border-color: #EF7D32;
    box-shadow: 0 0 0 4px rgba(239, 125, 50, 0.15);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #cbbba8;
}

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

/* ---- BUTTON ---- */
.form-footer {
    margin-top: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.form-submit-btn {
    background: linear-gradient(135deg, #EF7D32 0%, #E06010 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(239, 125, 50, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(239, 125, 50, 0.5);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.privacy-notice {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Mobile Responsive for Form */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .form-card-box {
        padding: 30px 20px;
    }

    .form-header-title {
        font-size: 2.2rem;
    }
}

/* ---- ANIMATIONS ---- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes blob-bounce {
    0% {
        border-radius: 44% 56% 41% 59% / 54% 39% 61% 46%;
    }

    100% {
        border-radius: 54% 46% 51% 49% / 44% 49% 51% 56%;
    }
}

/* ============================================= */
/* --- COMPREHENSIVE RESPONSIVE STYLES --- */
/* ============================================= */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Hero Section */
    .franchise-hero {
        padding: 100px 6% 140px;
        gap: 3rem;
    }

    .franchise-hero h1 {
        font-size: 3.5rem;
    }

    .franchise-hero p {
        font-size: 1.15rem;
    }

    /* Floating Shapes */
    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    /* Hero Image */
    .floating-img {
        max-width: 420px;
    }

    .floating-card {
        padding: 14px 20px;
        bottom: 30px;
        left: -10px;
    }

    /* Why Franchise Section */
    .why-franchise-container {
        padding: 0 5%;
    }

    .why-franchise-grid {
        gap: 40px;
    }

    .why-franchise-grid h2 {
        font-size: 2.2rem !important;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-icon-box {
        min-width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Stats Section */
    .franchise-stats-testimonials {
        padding: 60px 5%;
    }

    .stats-row {
        gap: 20px;
        margin-bottom: 60px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 30px;
        gap: 25px;
    }

    .quote {
        font-size: 1.1rem;
    }

    /* Form Section */
    .franchise-form-section {
        padding: 60px 5% 100px;
    }

    .form-header-title {
        font-size: 2.5rem;
    }

    .form-card-box {
        padding: 35px 40px;
    }
}

/* --- TABLET/MOBILE (max-width: 900px) --- */
@media (max-width: 900px) {

    /* Hero - Stack Layout */
    .franchise-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 80px 5% 100px;
        gap: 2rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        justify-content: center;
        margin-top: 10px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .franchise-hero p {
        max-width: 100%;
        margin: 0 auto 28px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }

    /* Form Section - Use More Space */
    .franchise-form-container {
        max-width: 100%;
        padding: 0 2%;
    }

    .form-card-box {
        padding: 30px 25px;
    }

    /* Why Franchise - Stack Layout */
    .why-franchise-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-franchise-grid>div:first-child {
        max-width: 500px;
        margin: 0 auto;
    }

    .why-franchise-grid>div:last-child {
        text-align: center;
    }

    .benefit-item {
        text-align: left;
    }

    /* Stats - 2 Columns */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonial - Stack */
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-content {
        text-align: center !important;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Hero Section */
    .franchise-hero {
        padding: 50px 4% 80px;
        gap: 1.5rem;
    }

    .franchise-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .franchise-hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .badge-pill {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .floating-img {
        border-radius: 20px;
        border-width: 5px;
    }

    /* Floating Shapes */
    .floating-shape {
        filter: blur(30px);
    }

    .shape-1 {
        width: 150px;
        height: 150px;
        top: -5%;
        left: -8%;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    /* Form Section - Utilize Full Width */
    .franchise-form-section {
        padding: 40px 3% 70px;
    }

    .franchise-form-container {
        max-width: 100%;
        padding: 0;
    }

    .form-card-box {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .form-header-title {
        font-size: 1.8rem;
    }

    /* Buttons */
    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    /* Hero Image */
    .floating-img {
        max-width: 100%;
        border-radius: 20px;
        border-width: 6px;
    }

    .floating-card {
        padding: 12px 18px;
        border-radius: 16px;
    }

    .floating-card i {
        font-size: 20px;
        padding: 8px;
    }

    .floating-card strong {
        font-size: 14px;
    }

    .floating-card span {
        font-size: 11px;
    }

    /* Image Blob */
    .image-blob-bg {
        width: 110%;
        height: 110%;
    }

    /* Why Franchise Section */
    .why-franchise-section {
        margin-top: -40px;
    }

    .why-franchise-grid h2 {
        font-size: 1.8rem !important;
    }

    .why-franchise-grid p {
        font-size: 1rem !important;
    }

    .benefits-grid {
        gap: 15px;
        margin-top: 25px;
    }

    .benefit-item {
        padding: 18px;
        gap: 15px;
        border-radius: 18px;
    }

    .benefit-icon-box {
        min-width: 45px;
        height: 45px;
        font-size: 20px;
        border-radius: 12px;
    }

    .benefit-title {
        font-size: 1rem;
    }

    .benefit-desc {
        font-size: 0.9rem;
    }

    /* Stats Section */
    .franchise-stats-testimonials {
        padding: 50px 4%;
    }

    .stats-row {
        gap: 15px;
        margin-bottom: 50px;
    }

    .stat-item {
        padding: 20px 12px;
        border-radius: 18px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 25px 20px;
        border-radius: 24px 0 24px 24px;
        gap: 20px;
    }

    .testimonial-avatar img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .quote {
        font-size: 1rem;
    }

    .author {
        font-size: 0.85rem;
    }

    /* Form Section */
    .franchise-form-section {
        padding: 50px 4% 80px;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-header-title {
        font-size: 2rem;
    }

    .form-header-desc {
        font-size: 1rem;
    }

    .form-card-box {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .decoration-doughnut {
        width: 80px;
        height: 80px;
        border-width: 18px;
        top: -20px;
        right: -20px;
    }

    .form-grid {
        gap: 18px;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .form-footer {
        margin-top: 25px;
    }

    .form-submit-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }

    .privacy-notice {
        font-size: 0.8rem;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Hero Section */
    .franchise-hero {
        padding: 50px 4% 80px;
    }

    .franchise-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .franchise-hero p {
        font-size: 0.95rem;
    }

    .badge-pill {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Floating Shapes */
    .shape-1 {
        width: 140px;
        height: 140px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    /* Buttons - Stack */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Hero Image */
    .floating-img {
        border-radius: 16px;
        border-width: 5px;
    }

    .floating-card {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .floating-card i {
        font-size: 18px;
        padding: 6px;
    }

    /* Why Franchise Section */
    .why-franchise-section {
        margin-top: -30px;
    }

    .why-franchise-container {
        padding: 0 4%;
    }

    .why-franchise-grid h2 {
        font-size: 1.5rem !important;
    }

    .benefits-grid {
        gap: 12px;
    }

    .benefit-item {
        padding: 15px;
        gap: 12px;
        border-radius: 14px;
    }

    .benefit-icon-box {
        min-width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .benefit-title {
        font-size: 0.95rem;
    }

    .benefit-desc {
        font-size: 0.85rem;
    }

    /* Stats Section */
    .franchise-stats-testimonials {
        padding: 40px 3%;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 40px;
    }

    .stat-item {
        padding: 16px 10px;
        border-radius: 14px;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 20px 16px;
        border-radius: 20px 0 20px 20px;
    }

    .testimonial-avatar img {
        width: 70px;
        height: 70px;
    }

    .quote {
        font-size: 0.9rem;
    }

    .author {
        font-size: 0.8rem;
    }

    /* Form Section */
    .franchise-form-section {
        padding: 40px 3% 60px;
    }

    .form-header-title {
        font-size: 1.7rem;
    }

    .form-header-desc {
        font-size: 0.9rem;
    }

    .form-card-box {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .decoration-doughnut {
        width: 60px;
        height: 60px;
        border-width: 14px;
        top: -15px;
        right: -15px;
    }

    .form-grid {
        gap: 14px;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .form-input {
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .form-submit-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .privacy-notice {
        font-size: 0.75rem;
    }
}

/* --- EXTRA SMALL MOBILE (max-width: 360px) --- */
@media (max-width: 360px) {
    .franchise-hero h1 {
        font-size: 1.7rem;
    }

    .franchise-hero p {
        font-size: 0.9rem;
    }

    .why-franchise-grid h2 {
        font-size: 1.3rem !important;
    }

    .stat-item h3 {
        font-size: 1.4rem;
    }

    .quote {
        font-size: 0.85rem;
    }

    .form-header-title {
        font-size: 1.5rem;
    }

    .form-submit-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}