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

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1a237e;
    --accent-color: #ffa000;
    --success-color: #388e3c;
    --danger-color: #d32f2f;
    --dark-bg: #0f1419;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text-dark: #212121;
    --text-light: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Noto Sans KR', 'Nanum Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), #283593);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #c62828);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8f00);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 160, 0, 0.6);
}

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

.btn-secondary:hover {
    background: #283593;
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

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

/* ================================
   Book Covers Section
   ================================ */
.book-covers {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.cover-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

.cover-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.cover-info {
    padding: 1.5rem;
    text-align: center;
}

.cover-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.cover-info .price {
    font-size: 1.1rem;
    color: var(--text-light);
}

.cover-info .price strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.special-offer,
.bonus-offer {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.special-offer {
    border-left: 5px solid var(--accent-color);
}

.bonus-offer {
    border-left: 5px solid var(--success-color);
}

.special-offer i,
.bonus-offer i {
    font-size: 2rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.special-offer p,
.bonus-offer p {
    display: inline-block;
    font-size: 1.2rem;
    vertical-align: middle;
}

.discount {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ================================
   Section Styles
   ================================ */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* About Section */
.about {
    background: var(--white);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.key-features {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.key-features h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.key-features ul {
    list-style: none;
}

.key-features li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.key-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Author Section */
.author {
    background: var(--light-bg);
}

.author-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.author-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.author-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.author-links {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.author-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.author-links ul {
    list-style: none;
}

.author-links li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.author-links li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.author-links a:hover {
    color: var(--primary-color);
}

/* Contents Section */
.contents {
    background: var(--white);
}

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

.contents-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contents-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contents-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contents-description ul {
    list-style: none;
    margin-top: 1rem;
}

.contents-description li {
    padding: 0.3rem 0;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.contents-preview {
    text-align: center;
    margin-top: 3rem;
}

.contents-preview .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 중요 안내문 스타일 */
.important-notice {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 4px solid #d32f2f;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d32f2f;
}

.notice-header i {
    font-size: 2.5rem;
    color: #d32f2f;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(211, 47, 47, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.notice-header h3 {
    font-size: 1.6rem;
    color: #c62828;
    margin: 0;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(211, 47, 47, 0.2);
}

.notice-content {
    line-height: 1.8;
}

.notice-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content strong {
    color: #c62828;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* ================================
   Order Form Section
   ================================ */
.order-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.order-notice {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.order-notice i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.order-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* Purchase Options */
.purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* 커스텀 라디오 버튼 */
.custom-radio {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border: 3px solid #ccc;
    border-radius: 50%;
    background: white;
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 체크된 상태 - 빨간색 원 + 체크마크 */
.radio-card input[type="radio"]:checked + .custom-radio {
    background: #d32f2f;
    border-color: #d32f2f;
    font-size: 18px;
    color: white;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.5);
}

.radio-card input[type="radio"]:checked + .custom-radio::before {
    content: '✓';
}

/* 추천 옵션 - 미선택 상태 테두리 */
.radio-card.recommended .custom-radio {
    border-color: #ffa000;
    border-width: 3px;
}

.radio-content {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--primary-color);
    background: #ffebee;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.radio-card.recommended .radio-content {
    border-color: var(--accent-color);
    background: #fff8e1;
    border-width: 3px;
}

.radio-card.recommended input[type="radio"]:checked + .radio-content {
    border-color: var(--primary-color);
    background: #ffebee;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2);
    transform: scale(1.02);
}

.radio-content .badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.radio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.option-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.option-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

.option-save {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Form Groups */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Checkbox Styles */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 1rem;
    line-height: 1.5;
}

.privacy-text {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Bonus Section */
.bonus-section {
    background: #f1f8e9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--success-color);
}

.bonus-info {
    margin-bottom: 1rem;
}

.bonus-book-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
}

.bonus-book-info i {
    font-size: 2.5rem;
    color: var(--success-color);
}

.bonus-book-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.bonus-book-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Address Section */
.address-section {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 12px;
}

.postal-input {
    display: flex;
    gap: 0.5rem;
}

.postal-input input {
    flex: 1;
}

.postal-input button {
    white-space: nowrap;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-help i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Payment Section */
.payment-section {
    background: #fff9c4;
    padding: 1.5rem;
    border-radius: 12px;
}

.payment-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.account-info i {
    font-size: 2rem;
    color: var(--accent-color);
}

.account-info p {
    margin: 0.25rem 0;
}

.account-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.account-holder {
    font-size: 1rem;
    color: var(--text-light);
}

.payment-notice {
    padding: 1rem;
    background: #fff3e0;
    border-radius: 8px;
}

.payment-notice p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.payment-notice i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* ================================
   FAQ Section
   ================================ */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-bg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.faq-item h4 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

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

/* ================================
   Footer
   ================================ */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), #283593);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact i {
    margin-right: 0.5rem;
}

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

/* ================================
   Modal
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-icon i {
    font-size: 4rem;
}

.modal-icon.success i {
    color: var(--success-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.modal-content p {
    text-align: center;
    margin: 0.5rem 0;
}

.modal-body {
    margin: 1.5rem 0;
}

.account-reminder {
    background: #fff9c4;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.account-reminder p {
    margin: 0.5rem 0;
    text-align: left;
}

.account-reminder .amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .covers-grid,
    .contents-grid,
    .purchase-options {
        grid-template-columns: 1fr;
    }
    
    .cover-image {
        height: 300px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .postal-input {
        flex-direction: column;
    }
    
    .postal-input button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .important-notice {
        padding: 1.5rem;
    }
    
    .notice-header h3 {
        font-size: 1.2rem;
    }
    
    .notice-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .notice-header i {
        font-size: 1.5rem;
    }
}

/* ================================
   Animations
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}