:root {
    --primary-purple: #635B9F;
    --primary-yellow: #F6DE8D;
    --primary-red: #C8102E;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F9F9F9;
    --border-color: #E0E0E0;
    --success-green: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.5;
}

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

/* Header */
.hero-section {
    background-color: var(--primary-purple);
    color: var(--text-light);
    padding: 60px 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-placeholder {
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.img-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-text {
    flex: 1.5;
}

.badge {
    background-color: var(--primary-yellow);
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text h1 span {
    color: var(--primary-yellow);
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #a00d25;
}

.btn-whatsapp {
    background-color: var(--success-green);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #999;
    color: #666;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Main Content */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.book-info-card {
    background-color: var(--primary-yellow);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.book-info-card h2 {
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.book-details {
    list-style: none;
    margin-top: 30px;
}

.book-details li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.book-details li::before {
    content: "•";
    color: var(--text-dark);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.price {
    color: var(--primary-red);
    font-size: 1.4rem;
}

.freight-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.freight-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.origin-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input.readonly-field {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.alert-freight-required {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
    color: #E65100;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.alert-freight-required.hidden {
    display: none;
}


.freight-result {
    margin-top: 15px;
    padding: 10px;
    background-color: #F0F0F0;
    border-radius: 4px;
}

.total-display {
    margin-top: 20px;
    font-size: 1.1rem;
    border-top: 1px solid #EEE;
    padding-top: 15px;
}

.total-display strong {
    color: var(--primary-red);
    font-size: 1.4rem;
    float: right;
}

/* Payment Section */
.payment-section {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.payment-section h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

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

.tag {
    background-color: #F0F0F0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    display: inline-block;
    margin-bottom: 10px;
}

.copy-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.copy-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: #FAFAFA;
}

.copy-box button {
    padding: 8px 12px;
    background: #EEE;
    border: 1px solid #DDD;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-box button:hover {
    background: #DDD;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #EEE;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder img {
    max-width: 100%;
}

.center {
    text-align: center;
}

.bank-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.instruction-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}

/* Checkout Form */
.checkout-section {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.checkout-section h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.checkout-section>p {
    margin-bottom: 30px;
    color: #666;
}

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

.alert-info {
    background-color: var(--primary-yellow);
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 30px;
}

.form-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

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

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid #EEE;
    padding-top: 40px;
}

.footer-content {
    padding-bottom: 40px;
}

.footer-info {
    border-radius: 12px;
    border: 1px solid #E8E8EE;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-info-text {
    flex: 1;
}

.footer-info-text h3 {
    margin-bottom: 15px;
}

.footer-info-text p {

    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-badge {
    background-color: #E0F7FA;
    color: #006064;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 15px;
}

.footer-logo img {
    width: 129px;
    height: 129px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.sub-footer {
    background-color: var(--primary-yellow);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

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

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

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .footer-logo img {
        width: 100px;
        height: 100px;
    }
}