/* CSS Variables */
:root {
    --primary-blue: #0066cc;
    --nav-blue: #004999;
    --border-color: #ccc;
    --text-color: #333;
    --white: #ffffff;
    --background-gray: #f8f8f8;
    --border-radius: 5px;
    --input-radius: 8px;
    --card-radius: 12px;
}

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

p {
    margin-bottom: 1em;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-gray);
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1.2em 1em;
    text-align: center;
}

/* Heading Styles */
h1 {
    margin: 0;
    font-size: 2.0em;
}

h2 {
    font-weight: normal;
    font-style: italic;
    margin: 0.3em 0 0;
    font-size: 1.1em;
}

h3 {
    font-weight: bold;
    font-size: 1.3em;
    color: blue;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: 2em;
}

footer a {
    color: white;
}

footer p {
    margin-top: 0.5em;
    font-size: 0.85em;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1076px;
    margin: auto;
    padding: 2em 1em;
    background-color: white;
}

/* Image Layout */
.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 2em;
}

.image-box {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Section Styles */
section {
    margin-bottom: 2em;
}

/* List Styles */
ul, ol {
    padding-left: 1.2em;
}

ol li {
    margin-bottom: 0.5em;
}

/* Link Styles */
a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
}

a:hover {
    text-decoration: none;
}

/* Figures and Captions */
figure {
    margin: 0;
    text-align: center;
}

figcaption {
    font-size: 0.85em;
    margin-top: 5px;
    color: #444;
}

/* Comparison Images */
.comparison-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comparison-row figure {
    flex: 1 1 300px;
}

.comparison-row img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Order Form Styles
   ========================================== */

.order-section {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    padding: 2em 2.2em;
    border: 1px solid #e8e8e8;
}

/* Product card at top of order form */
.order-product {
    display: flex;
    gap: 1.5em;
    align-items: center;
    margin-bottom: 2em;
    padding: 1.5em;
    background: linear-gradient(135deg, #f0f5fa 0%, var(--background-gray) 100%);
    border-radius: 10px;
    border: 1px solid #dce5ee;
}

.order-product p {
    margin-bottom: 0.5em;
}

.product-img {
    max-width: 170px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Quantity input */
input[type="number"]#quantity {
    max-width: 90px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
}

/* Totals box */
.order-totals {
    background: linear-gradient(135deg, #f0f5fa, #eef2f7);
    padding: 1em 1.5em;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 2em;
    font-size: 1em;
    line-height: 2;
}

.order-totals .total-line {
    font-size: 1.2em;
    color: var(--primary-blue);
    border-top: 1px solid #c8d4e0;
    padding-top: 0.2em;
    margin-top: 0.1em;
}

/* Form section headers */
h4 {
    color: var(--primary-blue);
    margin: 2em 0 1em;
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.6em;
}

/* Form panels — subtle card grouping for each section */
.form-panel {
    background: #fcfcfc;
    border: 1px solid #efefef;
    border-radius: 10px;
    padding: 1.2em 1.4em 0.5em;
    margin-bottom: 0.5em;
}

.form-panel h4 {
    margin-top: 0;
}

/* Form layout */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 140px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88em;
    color: #555;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* Inputs, selects, textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: var(--input-radius);
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
}

select {
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 36px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: var(--white);
}

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

/* Required asterisk */
.required {
    color: #d32f2f;
    font-weight: 700;
}

/* Secure badge */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78em;
    color: #666;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    float: right;
    margin-top: 2px;
}

.secure-badge svg {
    flex-shrink: 0;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    margin-top: 1.5em;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004d99 100%);
    color: var(--white);
    border: none;
    border-radius: var(--input-radius);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    .image-box {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    .order-section {
        padding: 1.2em 1em;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .order-product {
        flex-direction: column;
        text-align: center;
    }

    .product-img {
        max-width: 100%;
    }

    .form-panel {
        padding: 1em 0.8em 0.3em;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
