/* The Book Page CSS */

/* Hero Slider Overrides for The Book Page - Different Aspect Ratio */
/* Book slider images are 1920 x 934 px */
/* Using .book-slider class to ensure these styles only apply to the-book.php */
.book-slider .hero-slider::before {
    padding-top: 48.6458%; /* 934/1920 * 100 = 48.6458% */
}

@supports (aspect-ratio: 1) {
    .book-slider .hero-slider {
        aspect-ratio: 1920 / 934;
    }
}

@media (max-width: 1920px) {
    .book-slider .hero-slider {
        max-height: 934px; /* Book slider image height at full width */
    }
}

@media (max-width: 1600px) {
    .book-slider .hero-slider {
        max-height: 778px; /* Proportional reduction: 1600 * 934 / 1920 */
    }
}

@media (max-width: 1400px) {
    .book-slider .hero-slider {
        max-height: 681px; /* Proportional reduction: 1400 * 934 / 1920 */
    }
}

@media (max-width: 1200px) {
    .book-slider .hero-slider {
        max-height: 584px; /* Proportional reduction: 1200 * 934 / 1920 */
    }
}

@media (max-width: 1024px) {
    .book-slider .hero-slider {
        max-height: 498px; /* Proportional reduction: 1024 * 934 / 1920 */
    }
}

@media (max-width: 768px) {
    /* On mobile, let images display at natural aspect ratio */
    .book-slider .hero-slider::before {
        display: none !important;
    }

    .book-slider .hero-slider {
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }

    /* Ensure images display properly on mobile */
    .book-slider .slide img {
        width: 100%;
        height: auto !important;
        max-height: none !important;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
    }

    /* Keep caption below slider on mobile */
    .book-slider .slide-caption {
        position: relative;
        margin-top: 10px;
    }

    .book-slider .caption-text {
        font-size: 13px;
        padding: 0 15px;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    .book-slider .caption-text {
        font-size: 12px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .book-slider .caption-text {
        font-size: 11px;
        padding: 0 10px;
        line-height: 1.4;
    }
}

/* Hero Banner Section - Matching national-pride-collection style */
.hero-banner-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-banner-section .hero-banner {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Image caption - Now handled by universal .image-caption class */

/* Book Introduction Section */
.section-book-intro {
    padding: 40px 0;
    background: transparent;
}

.section-book-intro .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-book-intro .section-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: #5B9BD5;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.section-book-intro .section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.section-book-intro .section-description {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Endorsers Grid */
.endorsers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 40px auto;
}

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

.endorser-card img {
    width: 100%;
    height: auto;
    max-width: 200px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.endorser-card h4 {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Latest Release Section */
.section-latest-release {
    padding: 40px 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: transparent;
    position: relative;
}

.section-latest-release::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 40%;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7), transparent);
    z-index: 1;
}

.section-latest-release .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.latest-release-content {
    max-width: 600px;
}

.release-text {
    color: #333;
}

.release-title {
    font-size: 28px;
    color: #5B9BD5;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.release-subtitle {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
}

.quote-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.quote-section blockquote {
    font-size: 18px;
    font-style: italic;
    color: #5B9BD5;
    line-height: 1.6;
    margin-bottom: 20px;
    border-left: none;
    padding-left: 0;
    quotes: "\201C" "\201D";
}

.quote-section blockquote::before {
    content: open-quote;
    font-size: 48px;
    line-height: 0;
    margin-right: 5px;
    vertical-align: -15px;
    color: #5B9BD5;
}

.quote-section blockquote::after {
    content: close-quote;
    font-size: 48px;
    line-height: 0;
    margin-left: 5px;
    vertical-align: -15px;
    color: #5B9BD5;
}

.quote-attribution p {
    font-size: 16px;
    color: #333;
    text-align: left;
    margin: 0;
    font-weight: 500;
    margin-top: 20px;
}

/* About the Book Section - Enhanced Premium Design */
.section-about-book {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 50%, #f1f6ff 100%);
    position: relative;
    overflow: hidden;
}

.section-about-book::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 50%, rgba(91, 155, 213, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse 600px 400px at 80% 80%, rgba(74, 144, 226, 0.02) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.section-about-book .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.about-book-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(91, 155, 213, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.about-book-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 50px 60px 20px 60px;
    position: relative;
}

.about-book-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(91, 155, 213, 0.3) 20%,
        rgba(74, 144, 226, 0.6) 50%,
        rgba(91, 155, 213, 0.3) 80%,
        transparent 100%);
}

.book-image {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(45deg, 
        rgba(91, 155, 213, 0.1) 0%,
        rgba(74, 144, 226, 0.05) 25%,
        transparent 50%,
        rgba(74, 144, 226, 0.05) 75%,
        rgba(91, 155, 213, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    filter: blur(20px);
}

.book-image img {
    width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(91, 155, 213, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(1.02) contrast(1.05);
}

.book-image:hover img {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(91, 155, 213, 0.15);
}

.book-details {
    flex: 1;
    text-align: center;
}

.book-title {
    font-size: 42px;
    background: linear-gradient(135deg, #2c5a8a 0%, #4a90e2 50%, #5B9BD5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
}

.book-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    border-radius: 2px;
}

.book-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.book-description:first-of-type {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.eras-list {
    list-style: none;
    padding: 0;
    margin: 10px auto 15px;
    max-width: 450px;
    text-align: left;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 16px;
    padding: 20px 25px;
    border: 1px solid rgba(91, 155, 213, 0.1);
}

.eras-list li {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.eras-list li:hover {
    color: #4a90e2;
    transform: translateX(5px);
}

.eras-list li::before {
    content: "✈";
    color: #4a90e2;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: normal;
}

.eras-list li:last-child {
    margin-bottom: 0;
}

.book-specs-section {
    display: flex;
    justify-content: center;
    padding: 25px 60px 20px 60px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-top: 1px solid rgba(91, 155, 213, 0.1);
}

.spec-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(91, 155, 213, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    transition: left 0.6s ease;
}

.spec-item:hover::before {
    left: 100%;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.spec-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spec-value {
    font-weight: 700;
    color: #2c5a8a;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.order-button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 60px 30px 60px;
}

.order-now-btn {
    background: linear-gradient(135deg, #2c5a8a 0%, #4a90e2 50%, #5B9BD5 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.order-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.order-now-btn:hover::before {
    left: 100%;
}

.order-now-btn:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #5B9BD5 50%, #7bb3f0 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

.order-now-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.15s ease;
}

/* Previous Editions Section */
.section-previous-editions {
    padding: 40px 0;
    background: transparent;
}

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

.section-previous-editions .section-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: #5B9BD5;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.editions-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.editions-viewport {
    overflow: hidden;
    border-radius: 8px;
}

.editions-track {
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    z-index: 10;
}

.carousel-nav:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.edition-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 0 0 440px;
    max-width: 440px;
}

.edition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.edition-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.edition-details {
    padding: 25px;
}

.edition-details h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.edition-specs p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.edition-specs span {
    font-weight: 500;
    color: #333;
}

/* Order Form Section */
.section-order-form {
    padding: 80px 0;
    background: #f8fafb;
}

.section-order-form .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: #5B9BD5;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.form-description {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Form Alerts */
.form-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.form-alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Order Form */
.order-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Form Sections */
.form-section {
    border: none;
    margin-bottom: 35px;
    padding: 0;
}

.form-section legend {
    font-size: 18px;
    font-weight: 600;
    color: #2c5a8a;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

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

.required {
    color: #e74c3c;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input.valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

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

/* Field Errors */
.field-error {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Radio Button Styling */
.signature-preference {
    flex: 2;
}

.signature-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #4a90e2;
    background: #f8fafb;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #4a90e2;
    background: #4a90e2;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-note {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    font-weight: normal;
}

/* Submit Section */
.submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f2f5;
}

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

.submit-btn {
    background: #2c5a8a;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 50px;
}

.submit-btn:hover:not(:disabled) {
    background: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

.submit-note {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Book Options Section */
.book-options-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 60px 20px 60px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-top: 1px solid rgba(91, 155, 213, 0.08);
}

.options-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c5a8a;
    margin-bottom: 25px;
    text-align: center;
}

.book-editions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.edition-option {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(91, 155, 213, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.edition-option input[type="radio"] {
    display: none;
}

.edition-option input[type="radio"]:checked + label {
    border-color: #4a90e2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(91, 155, 213, 0.05) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.edition-option input[type="radio"]:checked + label::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4a90e2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.edition-option label {
    display: block;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.edition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(91, 155, 213, 0.1);
    padding-bottom: 10px;
}

.edition-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c5a8a;
}

.edition-price {
    font-size: 20px;
    font-weight: 800;
    color: #c8a882;
}

.edition-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edition-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.edition-features li::before {
    content: '•';
    color: #4a90e2;
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(91, 155, 213, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quantity-selector label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    min-width: 40px;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #4a90e2;
}

.qty-btn:active {
    transform: scale(0.95);
}

#book-quantity {
    border: none;
    padding: 10px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    width: 60px;
    background: white;
}

.order-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2c5a8a 0%, #4a90e2 50%, #5B9BD5 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    margin-bottom: 15px;
}

.order-now-btn svg {
    transition: transform 0.3s ease;
}

.order-now-btn:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #5B9BD5 50%, #7bb3f0 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

.order-now-btn:hover svg {
    transform: scale(1.1);
}

.order-now-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.15s ease;
}

.secure-checkout-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(91, 155, 213, 0.1);
}

.secure-checkout-badge svg {
    color: #4CAF50;
}

/* Modal Styles - Fixed and Enhanced */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex !important;
}

.cart-modal, .checkout-modal, .thankyou-modal {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.checkout-modal {
    max-width: 900px;
    max-height: calc(100vh - 20px);
}

.thankyou-modal {
    max-width: 500px;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%) !important;
    padding: 25px 30px !important;
    border-bottom: 2px solid #e9ecef !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2c5a8a !important;
    letter-spacing: -0.5px;
}

.close-modal {
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #f0f0f0 !important;
    color: #666 !important;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    background: #ffffff;
    max-height: calc(100vh - 200px);
}

.checkout-modal .modal-body {
    max-height: calc(100vh - 150px) !important;
    padding: 25px 30px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.checkout-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.checkout-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.checkout-modal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.checkout-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 25px 30px !important;
    border-top: 2px solid #e9ecef !important;
    display: flex !important;
    gap: 15px !important;
    justify-content: flex-end !important;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);
}

/* Cart Items - Fixed Styles */
.cart-items {
    margin-bottom: 25px !important;
    min-height: 100px;
}

.empty-cart {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #888 !important;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-cart p {
    margin: 0 !important;
    font-weight: 500;
}

.cart-item {
    display: flex !important;
    gap: 20px !important;
    padding: 25px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    align-items: flex-start;
    background: #ffffff;
}

.cart-item:first-child {
    padding-top: 0 !important;
}

.cart-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.cart-item-image {
    width: 100px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
    flex: 1 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-details h4 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2c5a8a !important;
    line-height: 1.3;
}

.cart-item-description {
    margin: 0 !important;
    font-size: 14px !important;
    color: #6c757d !important;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4a90e2;
}

.cart-item-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.cart-item-controls .quantity-controls {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-item-controls .quantity-controls button {
    background: #f8f9fa !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #495057;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-controls .quantity-controls button:hover {
    background: #e9ecef !important;
    color: #4a90e2 !important;
}

.cart-item-controls .quantity-controls span {
    padding: 8px 16px !important;
    font-weight: 700 !important;
    min-width: 50px !important;
    text-align: center !important;
    background: #ffffff;
    color: #2c5a8a;
    font-size: 16px;
}

.cart-item-status {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #28a745 !important;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #28a745;
    text-align: center;
}

.cart-item-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #c8a882 !important;
    background: linear-gradient(135deg, #c8a882, #d4b896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remove-item {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.remove-item:hover {
    background: #c82333 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Cart Summary - Enhanced */
.cart-summary {
    border-top: 3px solid #e9ecef !important;
    padding-top: 25px !important;
    margin-top: 25px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 20px 20px 20px;
    border-radius: 12px;
    margin-left: -10px;
    margin-right: -10px;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    padding: 8px 0;
}

.summary-row span:first-child {
    color: #6c757d !important;
    font-weight: 500;
}

.summary-row span:last-child {
    color: #2c5a8a !important;
    font-weight: 600;
    font-size: 17px;
}

.summary-row.total {
    border-top: 2px solid #e9ecef !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.summary-row.total span:first-child {
    color: #2c5a8a !important;
    font-weight: 800 !important;
}

.summary-row.total span:last-child {
    background: linear-gradient(135deg, #c8a882, #d4b896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px !important;
    font-weight: 900 !important;
}

/* Checkout Sections */
.checkout-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-height: auto;
}

.checkout-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: relative;
}

.checkout-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c5a8a;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.checkout-item-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.checkout-item-details p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
}

.checkout-item-status {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #28a745;
    text-align: center;
    display: inline-block;
}

.checkout-item-price {
    font-weight: 700;
    color: #c8a882;
}

.checkout-total {
    text-align: right;
    font-size: 18px;
    color: #2c5a8a;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.checkout-modal .form-group:last-child {
    margin-bottom: 0;
}

.checkout-sections > *:last-child {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

/* Buttons - Professional Style */
.btn-primary, .btn-secondary {
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 2px solid transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px;
    font-family: inherit;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5a8a 0%, #4a90e2 50%, #5B9BD5 100%) !important;
    color: white !important;
    box-shadow:
        0 6px 20px rgba(74, 144, 226, 0.3),
        0 2px 8px rgba(74, 144, 226, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #5B9BD5 50%, #7bb3f0 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 12px 30px rgba(74, 144, 226, 0.4),
        0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01) !important;
    transition: all 0.15s ease !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #495057 !important;
    border: 2px solid #e9ecef !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-color: #adb5bd !important;
    color: #2c5a8a !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Thank You Modal - Enhanced Design */
.thankyou-modal .modal-body {
    text-align: center !important;
    padding: 40px 30px !important;
}

.success-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon svg {
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3));
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.thankyou-modal h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2c5a8a !important;
    margin-bottom: 15px !important;
    background: linear-gradient(135deg, #2c5a8a, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-number {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #4a90e2 !important;
    margin-bottom: 25px !important;
    background: #e3f2fd;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #4a90e2;
    display: inline-block;
}

.confirmation-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #e1f5fe;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.confirmation-message p {
    margin: 12px 0 !important;
    font-size: 16px !important;
    color: #1565c0 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-support {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-support h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c5a8a !important;
    margin-bottom: 20px !important;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.support-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.support-item:hover {
    border-color: #4a90e2;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.support-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #4a90e2;
}

.support-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.support-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2c5a8a !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-value:hover {
    color: #4a90e2 !important;
    text-decoration: none;
}

.thankyou-modal .btn-primary {
    margin-top: 20px !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bottom Banner Section - Matching hero banner style */
.section-bottom-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-bottom-banner .hero-banner {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Bottom banner image caption - Now handled by universal .image-caption class */

/* Universal image caption styling - matching about-artist.css */
.image-caption {
    font-size: 1rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0.75rem auto 0 auto;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .section-about-book .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    .about-book-box {
        border-radius: 20px;
    }

    .about-book-content {
        gap: 40px;
        padding: 40px 50px 15px 50px;
    }
    
    .book-image img {
        width: 450px;
    }
    
    .book-title {
        font-size: 38px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .about-book-box {
        border-radius: 18px;
    }

    .about-book-content {
        gap: 30px;
        padding: 35px 40px 15px 40px;
    }
    
    .book-image img {
        width: 400px;
    }
    
    .book-title {
        font-size: 34px;
    }
    
    .spec-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .latest-release-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .endorsers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-latest-release::before {
        right: 0;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.55));
    }
    
    .section-about-book {
        padding: 60px 0;
    }
    
    .about-book-box {
        border-radius: 16px;
    }

    .about-book-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 30px 30px 15px 30px;
    }
    
    .book-image img {
        width: 350px;
        max-width: 100%;
    }
    
    .book-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .spec-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .spec-item {
        padding: 12px;
    }
    
    .spec-value {
        font-size: 16px;
    }
    
    .eras-list {
        max-width: 90%;
        padding: 15px 20px;
        margin: 8px auto 15px;
    }
    
    .edition-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .editions-carousel {
        padding: 0 50px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .order-form {
        padding: 30px 20px;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-option {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .section-book-intro,
    .section-latest-release,
    .section-about-book,
    .section-previous-editions,
    .section-order-form {
        padding: 50px 0;
    }

    .section-about-book {
        padding: 40px 0;
    }

    .about-book-box {
        border-radius: 14px;
        backdrop-filter: blur(10px);
    }

    /* Mobile: Book content with no bottom padding/margin */
    .about-book-content {
        padding: 25px 20px 0 20px !important;
        margin-bottom: 0 !important;
    }

    /* Mobile: Book details with no bottom spacing */
    .book-details {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Mobile: Book specs with no top spacing or border */
    .book-specs-section {
        padding: 0 20px 20px 20px !important;
        margin-top: 0 !important;
        border-top: none !important;
    }

    .order-button-section {
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .book-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .book-description:first-of-type {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Mobile: Remove all bottom margins from descriptions */
    .book-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 0 !important;
    }

    /* Mobile: Eras list with no bottom margin */
    .eras-list {
        padding: 15px 20px;
        border-radius: 12px;
        margin: 8px auto 0 auto !important;
    }

    .eras-list li {
        font-size: 15px;
        margin-bottom: 6px;
        padding-left: 25px;
    }

    .eras-list li:last-child {
        margin-bottom: 0 !important;
    }

    .order-button-section {
        padding: 0 30px 25px 30px;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .spec-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        text-align: left;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(91, 155, 213, 0.08);
    }
    
    .spec-item:last-child {
        margin-bottom: 0;
    }
    
    .spec-label {
        margin-bottom: 0;
        font-size: 13px;
        text-align: left;
    }
    
    .spec-value {
        font-size: 16px;
        text-align: right;
    }
    
    .order-now-btn {
        padding: 16px 40px;
        font-size: 14px;
        margin-top: 30px;
        border-radius: 25px;
    }
    
    .section-book-intro .section-title,
    .section-previous-editions .section-title {
        font-size: 24px;
    }
    
    .endorsers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 300px;
    }
    
    .endorser-card img {
        max-width: 150px;
    }
    
    .release-title {
        font-size: 20px;
    }
    
    .release-subtitle {
        font-size: 18px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .editions-carousel {
        padding: 0 0;
    }
    
    .g-recaptcha {
        transform: scale(0.75);
    }

    /* Universal image caption responsive - matching about-artist.css */
    .image-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-book-intro,
    .section-latest-release,
    .section-about-book,
    .section-previous-editions,
    .section-order-form {
        padding: 30px 0;
    }

    .section-about-book {
        padding: 30px 0;
    }

    .about-book-box {
        border-radius: 12px;
        margin: 0 10px;
        backdrop-filter: blur(8px);
    }

    /* Mobile: Book content with no bottom spacing */
    .about-book-content {
        padding: 20px 15px 0 15px !important;
        gap: 20px;
        margin-bottom: 0 !important;
    }

    /* Mobile: Book details with no bottom spacing */
    .book-details {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero-banner-section,
    .section-bottom-banner {
        margin-bottom: 30px;
        margin-top: 30px;
    }
    
    .book-image img {
        width: 280px;
        max-width: 95%;
        margin: 0 auto;
        display: block;
    }
    
    .book-title {
        font-size: 24px;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }
    
    .book-title::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }
    
    .book-description:first-of-type {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Mobile: Remove all bottom margins from descriptions */
    .book-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 0 !important;
    }

    /* Mobile: Eras list with no bottom margin */
    .eras-list {
        max-width: 100%;
        padding: 12px 18px;
        margin: 5px 0 0 !important;
        border-radius: 10px;
    }

    .eras-list li {
        font-size: 14px;
        margin-bottom: 5px;
        padding-left: 22px;
    }

    .eras-list li:last-child {
        margin-bottom: 0 !important;
    }

    .eras-list li::before {
        font-size: 12px;
    }

    /* Mobile: Book specs with no top spacing or border */
    .book-specs-section {
        padding: 0 15px 15px 15px !important;
        margin-top: 0 !important;
        border-top: none !important;
    }

    .order-button-section {
        padding: 0 15px 15px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .spec-item {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .spec-item:hover {
        transform: none;
    }
    
    .spec-label {
        font-size: 12px;
    }
    
    .spec-value {
        font-size: 15px;
    }
    
    .order-now-btn {
        padding: 14px 35px;
        font-size: 13px;
        margin-top: 25px;
        border-radius: 20px;
        letter-spacing: 1px;
    }
    
    .order-now-btn:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .release-portrait img {
        width: 250px;
    }
    
    .quote-section {
        padding: 20px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        border-width: 1px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .editions-carousel {
        padding: 0 0;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
    }
    
    .order-form {
        padding: 20px 15px;
    }
    
    .form-section legend {
        font-size: 16px;
    }

    /* Book Options Responsive Styles */
    .book-options-section {
        padding: 20px 15px;
    }

    .options-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .book-editions {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .edition-option label {
        padding: 20px;
    }

    .edition-name {
        font-size: 16px;
    }

    .edition-price {
        font-size: 18px;
    }

    .edition-features li {
        font-size: 13px;
    }

    .quantity-selector {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .quantity-selector label {
        font-size: 14px;
    }

    .qty-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    #book-quantity {
        padding: 8px 12px;
        width: 50px;
    }

    .order-now-btn {
        padding: 14px 30px;
        font-size: 14px;
        width: 100%;
    }

    .secure-checkout-badge {
        font-size: 12px;
        padding: 6px 12px;
        flex-direction: column;
        gap: 4px;
    }

    /* Modal Responsive Styles */
    .modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
    }

    .cart-modal, .checkout-modal, .thankyou-modal {
        width: 100% !important;
        max-width: none !important;
        max-height: calc(100dvh - 20px) !important;
        border-radius: 16px !important;
        margin: 0 auto !important;
    }

    .modal-header {
        padding: 20px !important;
        border-radius: 16px 16px 0 0;
    }

    .modal-header h2 {
        font-size: 20px !important;
    }

    .close-modal {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
    }

    .modal-body {
        padding: 20px !important;
        max-height: calc(100dvh - 200px) !important;
    }

    .checkout-modal .modal-body {
        max-height: calc(100dvh - 140px) !important;
        min-height: 300px !important;
        padding: 15px 20px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    .modal-footer {
        padding: 20px !important;
        flex-direction: column-reverse !important;
        gap: 12px !important;
        border-radius: 0 0 16px 16px;
    }

    .btn-primary, .btn-secondary {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
        min-height: 48px !important;
    }

    .cart-item {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 0 !important;
        align-items: center !important;
        text-align: center;
    }

    .cart-item-image {
        width: 80% !important;
        height: 100px !important;
        max-width: 250px !important;
        margin: 0 auto;
    }

    .cart-item-details {
        width: 100% !important;
        text-align: center;
    }

    .cart-item-details h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .cart-item-description {
        margin: 8px 0 16px 0 !important;
        font-size: 13px !important;
        text-align: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cart-item-controls {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100%;
        margin-top: 8px !important;
        padding-top: 16px !important;
    }

    .cart-item-controls .quantity-controls {
        width: auto !important;
        justify-self: center;
    }

    .cart-item-price {
        font-size: 18px !important;
        order: -1;
    }

    .remove-item {
        order: 1;
        margin-top: 8px;
    }

    .cart-summary {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px !important;
    }

    .summary-row {
        font-size: 14px !important;
    }

    .summary-row.total {
        font-size: 18px !important;
    }

    .summary-row.total span:last-child {
        font-size: 20px !important;
    }

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

    .checkout-sections {
        gap: 20px;
    }

    .checkout-section {
        padding: 20px;
    }

    .checkout-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .inquiry-info {
        margin-top: 15px;
    }

    .inquiry-info p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .inquiry-info ul {
        padding-left: 20px;
    }

    .inquiry-info ul li {
        font-size: 13px;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .checkout-item {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        align-items: center;
        text-align: center;
    }

    .checkout-item-image {
        width: 100%;
        height: 80px;
        max-width: 150px;
    }

    /* Thank You Modal Responsive */
    .thankyou-modal .modal-body {
        padding: 25px 15px !important;
    }

    .thankyou-modal h3 {
        font-size: 24px !important;
    }

    .order-number {
        font-size: 18px !important;
        padding: 10px 16px;
    }

    .confirmation-message {
        padding: 20px;
        margin: 20px 0;
    }

    .confirmation-message p {
        font-size: 14px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-support {
        padding: 20px;
        margin: 20px 0;
    }

    .contact-support h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .support-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .support-icon {
        width: 45px;
        height: 45px;
    }

    .support-details {
        align-items: center;
        text-align: center;
    }

    .support-label {
        font-size: 12px !important;
    }

    .support-value {
        font-size: 14px !important;
        word-break: break-all;
    }

    .thankyou-modal .btn-primary {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 14px !important;
        margin-top: 15px !important;
    }
}
/* Responsive styles for banner captions - Matching national-pride-collection */
@media (max-width: 768px) {
    .hero-banner-section,
    .section-bottom-banner {
        height: auto;
    }
}

@media (max-width: 576px) {
    /* Universal image caption responsive */
    .image-caption {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    /* Universal image caption responsive - matching about-artist.css */
    .image-caption {
        font-size: 0.8rem;
        padding: 0 8px;
    }
}

/* Extra small mobile devices - matching about-artist.css */
@media (max-width: 360px) {
    .image-caption {
        font-size: 0.8rem;
        padding: 0 8px;
    }
}
