/* Heart of Darkness Official Fonts */
@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Oswald', sans-serif !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
}

/* Embedded mode - reduce top/bottom padding when in iframe */
body.embedded .container {
    padding: 20px;
}

h1 {
    color: #a42325;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: #000000;
    font-weight: 400;
}

/* Success Modal Overlay */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none; /* Hidden by default - shown via JS */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

/* When modal is shown (JS adds inline style) */
.success-modal[style*="display: flex"] {
    display: flex;
}

.success-modal-content {
    background-color: #a42325;
    color: #ffffff;
    padding: 50px 60px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease-out;
}

.success-modal-content h2 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.success-modal-content p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive modal */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 40px 30px;
        margin: 20px;
    }

    .success-modal-content h2 {
        font-size: 22px;
    }

    .success-modal-content p {
        font-size: 16px;
    }
}

/* Beer Items */
.beer-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 0px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.beer-item:hover {
    border-color: #a42325;
}

.beer-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 20px;
    background-color: #ffffff;
}

.beer-info {
    flex: 1;
}

.beer-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #000000;
    text-transform: uppercase;
}

.price {
    color: #a42325;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.unit {
    color: #000000;
    font-size: 13px;
    font-weight: 400;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #a42325;
    border-radius: 0px;
    background: #ffffff;
    color: #a42325;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: #a42325;
    color: #ffffff;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #e6e6e6;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: #000000;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full-width {
    margin-bottom: 20px;
}

label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #000000;
    text-transform: uppercase;
}

.required {
    color: #a42325;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 0px;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: #000000;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #a42325;
    border-width: 2px;
}

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

/* Order Summary */
.order-summary {
    background-color: rgba(164, 35, 37, 0.05);
    padding: 30px;
    margin: 40px 0;
    border: 2px solid #a42325;
    border-radius: 0px;
}

.order-summary h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #a42325;
    text-transform: uppercase;
}

#summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.summary-calculations {
    margin-top: 20px;
}

.subtotal-row, .vat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
    color: #666;
}

.vat-row {
    padding-bottom: 15px;
    font-style: italic;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #a42325;
    font-size: 20px;
    font-weight: 700;
}

.total-label {
    color: #a42325;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    color: #a42325;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 20px 24px;
    background-color: #a42325;
    color: #ffffff;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #780406;
}

.submit-btn:disabled {
    background-color: #e6e6e6;
    color: #999999;
    cursor: not-allowed;
}

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

    .beer-item {
        flex-wrap: wrap;
    }

    .quantity-controls {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}
