/* ===== CSS Variables - Sweet Color Palette ===== */
:root {
    --primary-pink: #ff6b9d;
    --secondary-pink: #ffc1e3;
    --light-pink: #ffe5f0;
    --cream: #fff5f7;
    --peach: #ffb5a7;
    --lavender: #c8b6ff;
    --mint: #b8e6d5;
    --gold: #ffd700;
    --chocolate: #8b4513;
    --text-dark: #4a2c2a;
    --text-light: #6b4e4a;
    --white: #ffffff;
    --shadow: rgba(255, 107, 157, 0.2);
    --gradient-1: linear-gradient(135deg, #ff6b9d 0%, #ffc1e3 100%);
    --gradient-2: linear-gradient(135deg, #ffc1e3 0%, #c8b6ff 100%);
    --gradient-3: linear-gradient(135deg, #b8e6d5 0%, #ffc1e3 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, var(--cream), var(--light-pink));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly improvements */
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

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

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

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    color: var(--secondary-pink);
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav a:hover,
.nav a.active {
    background: var(--gradient-1);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-pink);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gradient-1);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-small {
    padding: 3rem 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===== Calculator Section ===== */
.calculator-section {
    padding: 2rem 0 4rem;
}

.calculator-card {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.calculator-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.form-group label i {
    color: var(--primary-pink);
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--secondary-pink);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: var(--light-pink);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-pink);
}

.btn-calculate {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* ===== Advanced Section ===== */
.advanced-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5f0 100%);
    border-radius: 20px;
    border: 2px dashed var(--secondary-pink);
}

.advanced-title {
    font-size: 1.5rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advanced-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===== Results Section ===== */
.results-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gradient-3);
    border-radius: 20px;
    animation: slideIn 0.5s ease;
}

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

.results-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-pink);
    font-size: 1.1rem;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span:first-child {
    color: var(--text-light);
}

.breakdown-item span:last-child {
    font-weight: bold;
    color: var(--primary-pink);
}

.breakdown-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-pink);
}

.advanced-breakdown {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5f0 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-pink);
}

.profit-item {
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.profit-item span {
    color: var(--white) !important;
}

.total-cost {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.total-cost span:last-child {
    color: var(--primary-pink);
    font-size: 2rem;
}

.btn-reset,
.btn-print {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.btn-reset:hover,
.btn-print:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Info Cards ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-light);
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 2rem 0 4rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.gallery-image {
    height: 250px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.wedding-cake { background: var(--gradient-1); }
.birthday-cake { background: var(--gradient-2); }
.custom-cake { background: var(--gradient-3); }
.chocolate-cake { background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%); }
.rose-cake { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); }
.unicorn-cake { background: linear-gradient(135deg, #c8b6ff 0%, #ffc1e3 100%); }
.geometric-cake { background: linear-gradient(135deg, #ffd700 0%, #ff6b9d 100%); }
.fruit-cake { background: linear-gradient(135deg, #b8e6d5 0%, #ffb5a7 100%); }
.elegant-cake { background: linear-gradient(135deg, #e6e6fa 0%, #ffc1e3 100%); }

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.price-tag {
    display: inline-block;
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gallery-cta {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.gallery-cta h2 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.gallery-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* ===== About Section ===== */
.about-section {
    padding: 2rem 0 4rem;
}

.about-content {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.about-text {
    margin-bottom: 3rem;
}

.about-text h2 {
    color: var(--primary-pink);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: var(--gradient-2);
    color: var(--white);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.feature-box:hover i {
    color: var(--white);
}

.feature-box h3 {
    margin-bottom: 0.5rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-form-container,
.contact-info-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--primary-pink);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--secondary-pink);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: var(--cream);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.btn-submit {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-top: 0.3rem;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Email-Only Contact Page ===== */
.contact-email-only {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.contact-icon i {
    font-size: 3rem;
    color: var(--white);
}

.contact-card h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.email-box {
    background: var(--light-pink);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
}

.response-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-style: italic;
}

.response-info i {
    color: var(--primary-pink);
}

.contact-reasons {
    background: var(--cream);
    padding: 3rem;
    border-radius: 30px;
    margin-bottom: 3rem;
}

.contact-reasons h3 {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.reason-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.reason-item i {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.reason-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.reason-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
}

.faq-section h3 {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 15px;
    border-left: 4px solid var(--primary-pink);
}

.faq-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Legal Pages ===== */
.legal-section {
    padding: 2rem 0 4rem;
}

.legal-content {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-pink);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-pink);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.legal-content ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-dark);
}

.contact-list {
    list-style: none;
    margin-left: 0 !important;
    padding: 1rem;
    background: var(--cream);
    border-radius: 15px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
}

.contact-list i {
    color: var(--primary-pink);
    width: 20px;
}

.legal-notice {
    background: var(--gradient-2);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-pink);
}

.legal-notice p {
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.disclaimer-notice {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5f0 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-pink);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-notice i {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-top: 0.2rem;
}

.disclaimer-notice p {
    margin: 0;
    color: var(--text-dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-pink);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-pink);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-pink);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.contact-info i {
    color: var(--secondary-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.footer-bottom i {
    color: var(--primary-pink);
}

/* ===== Landing Page Styles ===== */
.landing-hero {
    background: linear-gradient(135deg, #ff6b9d 0%, #c8b6ff 100%);
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.badge i {
    font-size: 1.2rem;
}

/* SEO Content Section */
.seo-content-section {
    padding: 4rem 0;
    background: var(--white);
}

.seo-content-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 2rem;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-content h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.seo-content strong {
    color: var(--primary-pink);
    font-weight: 600;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.seo-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--cream);
    border-left: 4px solid var(--primary-pink);
    border-radius: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.seo-list li strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.contact-email a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--primary-pink);
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.footer-keywords {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-pink);
}

.selection-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--cream), var(--light-pink));
}

.selection-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.selection-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.calculator-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.selection-card {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.selection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
}

.buyer-selection {
    border-top: 5px solid var(--primary-pink);
}

.baker-selection {
    border-top: 5px solid var(--chocolate);
}

.selection-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.buyer-selection .selection-icon {
    color: var(--primary-pink);
}

.baker-selection .selection-icon {
    color: var(--chocolate);
}

.selection-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.selection-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
}

.selection-features {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.selection-features h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selection-features ul {
    list-style: none;
    padding: 0;
}

.selection-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.selection-features li i {
    color: var(--primary-pink);
}

.baker-selection .selection-features li i {
    color: var(--chocolate);
}

.selection-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem;
    background: var(--light-pink);
    border-radius: 10px;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-pink);
}

.baker-selection .highlight-item {
    background: #f5e6d3;
}

.baker-selection .highlight-item i {
    color: var(--chocolate);
}

.btn-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.buyer-btn {
    background: var(--gradient-1);
    color: var(--white);
}

.baker-btn {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: var(--white);
}

.btn-selection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-pink);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: var(--cream);
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--gradient-1);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.buyer-cta {
    background: var(--white);
    color: var(--primary-pink);
}

.baker-cta {
    background: var(--chocolate);
    color: var(--white);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Calculator-Specific Styles */
.buyer-hero {
    background: var(--gradient-1);
}

.baker-hero {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.highlight-group {
    background: var(--light-pink);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-pink);
}

.section-divider {
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: var(--gradient-2);
    border-radius: 15px;
}

.section-divider h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tier-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tier-btn {
    flex: 1;
    min-width: 100px;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--secondary-pink);
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tier-btn:hover {
    background: var(--light-pink);
}

.tier-btn.active {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

.recommendation-box {
    background: var(--gradient-3);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary-pink);
}

.recommendation-box i {
    font-size: 2rem;
    color: var(--primary-pink);
}

.buyer-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-pink);
    border-radius: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-item i {
    font-size: 1.5rem;
    color: var(--primary-pink);
}

.buyer-total {
    background: var(--gradient-1);
    color: var(--white);
}

.buyer-total span {
    color: var(--white) !important;
}

.baker-total {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.baker-total span {
    color: var(--white) !important;
}

.baker-total small {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: normal;
}

.baker-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--chocolate);
}

.summary-card i {
    font-size: 2rem;
    color: var(--chocolate);
}

.summary-card small {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.summary-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.total-line {
    background: var(--light-pink);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.profit-line {
    background: #d4edda;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.pricing-analysis {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.pricing-analysis h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.analysis-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buyer-tips,
.baker-tips {
    background: var(--light-pink);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.buyer-tips h4,
.baker-tips h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buyer-tips ul,
.baker-tips ul {
    list-style: none;
    padding: 0;
}

.buyer-tips li,
.baker-tips li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-share,
.btn-save {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-share:hover,
.btn-save:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.buyer-card {
    border-left: 4px solid var(--primary-pink);
}

.buyer-card i {
    color: var(--primary-pink);
}

.baker-card {
    border-left: 4px solid var(--chocolate);
}

.baker-card i {
    color: var(--chocolate);
}

.baker-results {
    background: linear-gradient(135deg, #fff5f7 0%, #f5e6d3 100%);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 20px var(--shadow);
        display: none;
        padding: 1rem 0;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav ul li {
        text-align: center;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .calculator-selection-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
    }

    .cost-grid {
        grid-template-columns: 1fr;
    }

    .tier-selector {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button,
    .action-buttons a {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .btn-reset,
    .btn-print {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .calculator-card {
        padding: 1rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .total-cost {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Enhanced Responsive Styles ===== */

/* Tablets and Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

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

    .selection-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Landscape and Tablets (600px - 768px) */
@media (max-width: 768px) {
    .header .container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .calculator-selection-grid,
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-card,
    .selection-card {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .seo-content h2 {
        font-size: 1.8rem;
    }

    .seo-content h3 {
        font-size: 1.4rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-keywords {
        font-size: 0.7rem;
    }

    /* Calculator specific */
    .calculator-section {
        padding: 2rem 0;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-card {
        padding: 1.5rem;
        margin: 0;
    }

    .calculator-header h2 {
        font-size: 1.5rem;
    }

    .calculator-form,
    .results-panel {
        max-width: 100%;
        padding: 0;
    }

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

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    .cost-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .breakdown-card {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-calculate,
    .btn-reset,
    .btn-print,
    .btn-save,
    .btn-load {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .results-panel {
        margin-top: 2rem;
    }

    .total-cost {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .cost-breakdown {
        padding: 1.5rem;
    }

    .ingredient-list {
        gap: 0.8rem;
    }

    .ingredient-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .ingredient-item input {
        width: 100%;
        max-width: none;
    }

    .ingredient-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .btn-add-ingredient {
        width: 100%;
        margin-top: 1rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .buyer-tips,
    .baker-tips {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Mobile Portrait (480px - 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .calculator-card,
    .selection-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .seo-content {
        padding: 2rem;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-icon {
        width: 80px;
        height: 80px;
    }

    .contact-icon i {
        font-size: 2.5rem;
    }

    .email-link {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .legal-content {
        padding: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    /* Calculator forms */
    .calculator-section {
        padding: 1.5rem 0;
    }

    .calculator-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .calculator-header {
        margin-bottom: 1.5rem;
    }

    .calculator-header h2 {
        font-size: 1.4rem;
    }

    .calculator-description {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.7rem;
    }

    .checkbox-group {
        gap: 0.7rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    .total-cost {
        padding: 1.5rem;
    }

    .total-label {
        font-size: 1.2rem;
    }

    .total-amount {
        font-size: 2rem;
    }

    .cost-item {
        font-size: 0.9rem;
    }

    .cost-breakdown h3 {
        font-size: 1.2rem;
    }

    .breakdown-card h4 {
        font-size: 1rem;
    }

    .ingredient-item {
        padding: 0.8rem;
    }

    .ingredient-item input {
        font-size: 0.9rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .calculator-card,
    .selection-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .seo-content {
        padding: 1.5rem;
    }

    .seo-content h2 {
        font-size: 1.3rem;
    }

    .seo-content h3 {
        font-size: 1.1rem;
    }

    .seo-content p,
    .seo-list li {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card h2 {
        font-size: 1.5rem;
    }

    .email-link {
        font-size: 1rem;
    }

    .reason-item {
        padding: 1.5rem;
    }

    .reason-item i {
        font-size: 2rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }

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

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.85rem;
    }

    .free-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Calculator specific */
    .calculator-section {
        padding: 1rem 0;
    }

    .calculator-card {
        padding: 1rem;
        border-radius: 15px;
    }

    .calculator-header h2 {
        font-size: 1.2rem;
    }

    .calculator-description {
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.6rem;
    }

    .checkbox-group {
        gap: 0.6rem;
    }

    .checkbox-group label {
        font-size: 0.85rem;
    }

    .btn-calculate {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .action-buttons {
        gap: 0.6rem;
    }

    .btn-reset,
    .btn-print,
    .btn-save,
    .btn-load {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .total-cost {
        padding: 1rem;
    }

    .total-label {
        font-size: 1rem;
    }

    .total-amount {
        font-size: 1.8rem;
    }

    .cost-breakdown {
        padding: 1rem;
    }

    .cost-breakdown h3 {
        font-size: 1.1rem;
    }

    .cost-item {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .breakdown-card {
        padding: 0.8rem;
    }

    .breakdown-card h4 {
        font-size: 0.95rem;
    }

    .ingredient-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .ingredient-item input {
        width: 100%;
        padding: 0.5rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-remove {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-add-ingredient {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .analysis-item {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .buyer-tips,
    .baker-tips {
        padding: 1rem;
    }

    .buyer-tips h4,
    .baker-tips h4 {
        font-size: 1rem;
    }

    .buyer-tips li,
    .baker-tips li {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (< 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .calculator-card,
    .selection-card {
        padding: 0.8rem;
    }

    .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn-reset,
    .btn-print,
    .btn-save,
    .btn-load,
    .info-cards,
    .gallery-cta,
    .hero-badges,
    .mobile-menu-toggle,
    .buyer-tips,
    .baker-tips,
    .action-buttons {
        display: none !important;
    }

    .calculator-card,
    .results-panel {
        box-shadow: none;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: #000;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    .total-cost {
        border: 2px solid #333;
    }

    /* Add website URL note at bottom of print */
    .results-panel::after {
        content: "Generated from CakeCostCalculator.online - Free Cake Cost Calculator";
        display: block;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 2px solid #333;
        text-align: center;
        font-size: 0.9rem;
        font-weight: bold;
        color: #333;
    }

    /* Optimize for print */
    .calculator-section {
        padding: 0;
    }

    .calculator-card {
        padding: 1rem;
    }

    .calculator-header {
        margin-bottom: 1rem;
    }

    .cost-breakdown {
        page-break-inside: avoid;
    }

    .breakdown-card {
        page-break-inside: avoid;
    }
}
