/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: calc(50vh - 72px);
    margin-top: 72px;
    overflow: hidden;
}

.image-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.image-background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
}

#background-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.banner .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.banner .content h1 {
    font-size: 64px;
    text-align: center;
    margin: 0;
}

.banner .content p {
    font-size: 1.1rem;
    max-width: 450px;
    margin: 10px auto 0;
    color: #ddd;
    line-height: 1.5;
}

/* Section Styling */
section {
    padding: 40px 20px;
    text-align: center;
}

.purchase {
    background-color: #252525;
    padding-top: 200px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    background-color: transparent;
    cursor: pointer;
    margin-top: 0px;
}

.cta-button:hover {
    background-color: #00aaff;
    color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.5);
    transform: scaleX(1.03);
}

/* Purchase Form */
.purchase-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

input,
textarea,
select {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1rem;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 5px #00aaff;
}

select {
    margin-bottom: 10px;
    appearance: none;           /* Remove default OS styling */
    -webkit-appearance: none;   /* For Safari/iOS */
    -moz-appearance: none;      /* Just in case for Firefox */
    line-height: normal;

    padding: 10px;
    padding-right: 36px; /* make room for arrow */
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1rem;
    width: 100%;

    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

select:hover {
    cursor: pointer;
}

textarea {
    resize: none;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #1f1f1f;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.radio-option input[type="radio"] {
    accent-color: #00aaff;
    width: 18px;
    height: 18px;
    margin: 0;
}

.radio-option:hover {
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.radio-option span {
    color: #fff;
    font-size: 1rem;
}

.form-submit {
    margin: 0 auto;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #eee; /* updated for dark mode readability */
    transition: color 0.3s ease, font-size 0.3s ease;
}

.price-display.discounted {
    color: #28a745; /* green still works well on dark */
    font-size: 1.6rem;
}

/* Error Message Placeholder */
.error {
    color: #ff5555;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1em;
}

.error.hidden {
    display: none;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #00aaff;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1rem;
    margin: 0 auto 12px auto;  /* center horizontally */
    text-align: center;
    width: 100%;               /* or max-width if needed */
    box-sizing: border-box;    /* ensures padding doesn't overflow */
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

#loading-overlay {
    display: flex; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Spinner container */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: sans-serif;
}

/* Circular spinner */
.spinner-icon {
    width: 48px;
    height: 48px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

/* Text below spinner */
.spinner-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}