/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --base: #e8eaee;
    --orange: #FF7950;
    --text: #100d0d;
    --muted: #4a4550;
    --glass: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.95);
}

/* Global Styling */
body {
    background-color: var(--base);
    background-image:
        /* grid lines */
        repeating-linear-gradient(rgba(255, 255, 255, 0.09) 0px, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0px, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 24px),
        /* radial gradient for background */
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(180, 180, 210, 1) 100%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255, 150, 80, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    background-size: 1rem 1rem, 1rem 1rem, auto, auto, auto;
    color: var(--text);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 560px;
    margin: 60px 20px 60px;
}

/* Heading styles */
h3,
h1 .large-font {
    font-family: Cambria, serif;
}


h1 {
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h1 .small-font {
    display: block;
    font-weight: 900;
    font-size: .65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

h1 .large-font {
    display: block;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text);
    -webkit-box-reflect: below -18px linear-gradient(transparent 10%, rgba(0, 0, 0, 0.1) 100%);
}


h2 {
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::after {
    content: '';
    flex: 1;
    height: 14px;
    background-image: repeating-linear-gradient(110deg,
            transparent 0px,
            transparent 4px,
            rgba(107, 102, 112, 0.3) 4px,
            rgba(107, 102, 112, 0.3) 7px);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.9) 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
}

/* Section styles */
.section {
    background: linear-gradient(170deg,
            rgba(255, 255, 255, 0.8) 5%,
            rgba(255, 255, 255, 0.2) 40%);
    border: 1px solid var(--glass-border);
    border-radius: 0 20px;
    padding: 20px;
    margin-bottom: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.subscriptions {
    background: linear-gradient(170deg,
            rgba(255, 255, 255, 0.8) 5%,
            rgba(255, 255, 255, 0.12) 35%);
}

/* Input group styles */

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

.inline-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Labels, Disclaimer, and Lists */

label,
.disclaimer {
    color: var(--muted);
    font-weight: 400;
}

label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.disclaimer {
    font-size: .75rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 20px 0;
    text-align: center;
}

ul {
    margin-left: 1rem;
}

li {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.8;
}

li::marker {
    color: var(--orange);
}

a {
    color: var(--muted);
}

a:hover {
    color: var(--orange);
}

/* Inputs & Selects */

input[type="date"],
input[type="number"],
select {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    color: var(--text);
    font-weight: 300;
    font-size: 16px;
    height: 40px;
    padding: 8px 12px;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: rgba(255, 121, 80, 0.4);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 121, 80, 0.08);
}

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

select option {
    background: #e8e8ea;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Checkboxes */

.checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkbox-group input[type="checkbox"]:disabled+label {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--orange);
    border-color: transparent;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 1.5px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-group label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--text);
    cursor: pointer;
    font-weight: 300;
}

/* Submit Button */

input[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 0 20px 0 0;
    background: linear-gradient(to right,
            rgba(40, 36, 36, 0.85) 0%,
            rgba(72, 60, 52, 0.65) 100%);
    /* Diagonal line texture */
    background-image:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 6px),
        linear-gradient(to right,
            rgba(40, 36, 36, 0.85) 0%,
            rgba(72, 60, 52, 0.65) 100%);
    border-bottom: 2px solid var(--orange);
    color: rgba(255, 255, 255, 0.9);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    opacity: .8;
}

/* Results */

#result:not(:empty) {
    background: linear-gradient(170deg,
            rgba(255, 255, 255, 0.8) 5%,
            rgba(255, 255, 255, 0.2) 40%);
    margin-top: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 28px;
}


#result h3 {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}

#result h3 .highlight {
    display: block;
    font-family: Cambria, serif;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

#result p {
    font-family: Cambria, serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    margin-top: 8px;
    color: #56230c;
}

.diamond-icon {
    height: 1em;
    vertical-align: text-top;
}

/* Footer */

footer {
    border-top: 1px solid var(--glass-border);
    padding: 20px;
    text-align: center;
    width: 100%;
}

footer p {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    line-height: 1.8;
}
