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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --accent-red: #e50000;
    --accent-orange: #FF6B35;
    --text-dark: #333333;
    --text-gray: #666666;
}

.font-norwester {
    font-family: 'Norwester', sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    background: var(--white);
    margin-bottom: 60px;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Left - Book Cover */
.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.bestseller-badge {
    position: absolute;
    top: -15px;
    left: -20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
}

.book-cover {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Hero Right - Content */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-headline {
    font-family: 'Norwester', sans-serif;
    font-size: clamp(4rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--black);
}

/* Make the word "FORGET" red in the hero headline */
.hero-forget {
    color: var(--accent-red);
}


.hero-description {
    font-family: 'Book Antiqua', serif;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--text-gray);
    line-height: 1.7;
    margin: 1rem 0;
}

.hero-cta {
    margin: 1.5rem 0;
}

.retailer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #E0E7E8;
    border-radius: 8px;
    border: 1px solid #E0E7E8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.retailer-button:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hero-retailers {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.retailer-link {
    display: inline-block;
}

.retailer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* Make all retailer buttons in the hero the same size */
.hero .hero-retailers .retailer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 164px;
    height: 56px;
    padding: 0;
    /* logo will be centered */
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #E0E7E8;
    border-radius: 8px;
    border: 1px solid #E0E7E8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hero .hero-retailers .retailer-button:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Ensure logos scale nicely inside the fixed button area */
.hero .hero-retailers .retailer-logo {
    max-height: 36px;
    max-width: 90%;
    height: auto;
    width: auto;
}

/* What's Inside Section */
.whats-inside {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    max-width: 1202px;
    margin: 0 auto 60px;
    padding: 0 2rem;
}

.whats-inside__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 2 / -2;
    gap: 32px;
    padding: 36px 28px;
    border: 1px solid #ECF0F1;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
}

.whats-inside__media {
    grid-column: span 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.whats-inside__image-wrapper {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.whats-inside__image-inner {
    display: block;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

.whats-inside__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.whats-inside__text {
    align-self: center;
    grid-column: span 1;
    padding-right: 8px;
    padding-left: 8px;
}

.whats-inside__title {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.whats-inside__list-first {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
}

.whats-inside-list-first__item {
    padding-left: 28px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E %3Cg fill='none' fill-rule='evenodd' transform='translate(1 1)'%3E %3Ccircle cx='8' cy='8' r='8' stroke='%233BC184'/%3E %3Cpath stroke='%2339BF82' d='M4.51 7.867l2.695 2.697 5.052-5.052'/%3E %3C/g%3E %3C/svg%3E") 0px 3px no-repeat;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Book Summary Section */
.book-summary {
    padding: 6rem 2rem;
    background: var(--white);
}

.summary-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.summary-text {
    font-family: 'Book Antiqua', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-gray);
}

.summary-text p {
    margin-bottom: 2rem;
}

.summary-intro {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.summary-highlight {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--accent-orange);
    padding: 2rem;
    border-left: 4px solid var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    margin: 2rem 0;
}

/* About Author Section */
.about-author {
    padding: 6rem 2rem;
    background: var(--gray-light);
}

.author-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.author-text {
    font-family: 'Book Antiqua', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-gray);
}

.author-text p {
    margin-bottom: 2rem;
}

.author-text strong {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3em;
}

.author-signature {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-style: italic;
    color: var(--accent-orange);
    margin-top: 2rem;
    line-height: 1.6;
}

/* Extended Version Card */
.extended-card {
    padding: 6rem 2rem;
    background: var(--white);
}

.card-content {
    max-width: 950px;
    margin: 0 auto;
    background: #ECF0F1;
    border-radius: 12px;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
}

.card-description {
    font-family: 'Book Antiqua', serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.card-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.extended-cover {
    width: 192px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Form Styles */
.card-form-wrapper {
    width: 100%;
}

.idea-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #E0E7E8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.form-submit-btn {
    padding: 1rem 2rem;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.form-submit-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: #FF7A4D;
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(59, 193, 132, 0.1);
    color: #2d9d6e;
    border: 1px solid #3BC184;
}

.form-message.error {
    display: block;
    background: rgba(229, 0, 0, 0.1);
    color: #c70000;
    border: 1px solid var(--accent-red);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Site footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid #ECECEC;
    padding: 1rem 0;
}

.site-footer__text {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-nav__link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav__link:hover {
    color: var(--accent-orange);
}

.footer-divider {
    height: 1px;
    background: #ECECEC;
    max-width: 200px;
    margin: 1.5rem auto;
}

/* Policy Page Styles */
.policy-page {
    padding: 100px 0;
    background: var(--white);
    min-height: calc(100vh - 100px);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 4rem;
}

.policy-title {
    font-family: 'Norwester', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.policy-last-updated {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.policy-text {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
}

.policy-text h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-text p {
    margin-bottom: 1.5rem;
}

.policy-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-text li {
    margin-bottom: 0.5rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
}

.back-home:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        text-align: center;
    }

    .book-cover-wrapper {
        transform: rotate(0deg);
        max-width: 250px;
    }

    .book-cover-wrapper:hover {
        transform: translateY(-10px);
    }

    .bestseller-badge {
        transform: rotate(0deg);
    }
}

@media (max-width: 1024px) {
    .whats-inside__inner {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .whats-inside {
        margin-bottom: 30px;
        padding: 0 1rem;
    }

    .whats-inside__inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 3rem 1.5rem;
    }

    .whats-inside__media {
        grid-column: span 1;
        padding-left: 0;
        margin-bottom: 40px;
    }

    .whats-inside__image-wrapper {
        overflow: hidden;
        margin: 0px -12px;
        text-align: center;
    }

    .whats-inside__image {
        margin: 0px auto;
    }

    .whats-inside__view-toc {
        text-align: center;
    }

    .whats-inside__text {
        grid-column: span 1;
        padding-right: 0;
        padding-left: 0;
    }

    .whats-inside__title {
        font-size: 28px;
        line-height: 32px;
    }

    .whats-inside-list-second {
        margin-left: 1.5rem;
    }

    .card-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .card-text {
        order: 2;
    }

    .card-image {
        order: 1;
    }

    /* Responsive tweaks for removed elements; kept title/description centering */
    .card-title {
        text-align: center;
    }

    .card-description {
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .whats-inside {
        padding: 0 0.75rem;
    }

    .whats-inside__inner {
        padding: 2rem 1rem;
    }

    .book-summary,
    .about-author,
    .extended-card {
        padding: 4rem 1rem;
    }

    .card-content {
        padding: 2rem 1rem;
        border-radius: 8px;
    }

    .hero-container {
        gap: 2rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-medium);
    border-top: 4px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

.loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    min-height: 2em;
    /* Prevent layout shift */
    transition: opacity 0.3s ease;
}

.loading-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-medium);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-orange);
    transition: width 0.5s ease;
}

/* Buy Now Button & Order Page Styles */
.buy-now-wrapper {
    margin-top: 1.5rem;
}

.buy-directly-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    width: 100%;
    max-width: 540px;
    background: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}

.buy-directly-button:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    background: #ff7b4d;
    color: var(--white);
}

/* Order Page Styles */
.order-section {
    padding: 100px 0;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.order-title {
    font-family: 'Norwester', sans-serif;
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.order-card-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    background: #ffffff;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.order-image-column {
    background: var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.order-image-column::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    top: -25%;
    left: -25%;
}

.book-order-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.book-order-image {
    width: 100%;
    height: auto;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.2);
    display: block;
}

.order-form-column {
    padding: 60px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 968px) {
    .order-card-split {
        grid-template-columns: 1fr;
    }

    .order-image-column {
        padding: 40px;
    }

    .order-form-column {
        padding: 40px;
    }

    .order-title {
        text-align: center;
    }
}

.order-form {
    display: grid;
    gap: 20px;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.order-summary {
    margin-top: 30px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--black);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-medium);
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.order-details {
    margin-bottom: 2rem;
    text-align: left;
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.order-details p {
    margin-bottom: 0.5rem;
}

.shipping-info {
    color: var(--text-gray);
    font-style: italic;
}