/* ==========================================================================
   BRET BROS PARTY 2026 - Modern CSS
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --color-primary: #5a7a1e;
    --color-primary-light: #7d942e;
    --color-primary-dark: #3e5514;
    --color-accent: #c8a84e;
    --color-bg: #faf9f6;
    --color-bg-warm: #f5f0e8;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-bg-footer: #1a1f25;
    --color-text: #2c2c2c;
    --color-text-muted: #6b7280;
    --color-text-light: #e8e4dc;
    --color-border: #e0dcd4;
    --color-error: #dc3545;
    --color-success: #4caf50;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(90,122,30,0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 620px;
    --container-max-wide: 1100px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(90,122,30,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(200,168,78,0.06) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

strong {
    font-weight: 600;
}


/* --- Layout --- */
.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    flex: 1;
}

main {
    flex: 1;
}


/* --- Two-column layout (wide screens) --- */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 860px) {
    .site-container {
        max-width: var(--container-max-wide);
    }

    .main-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .main-intro {
        flex: 1;
        position: sticky;
        top: 2rem;
    }

    .main-layout > .card {
        flex: 1;
        min-width: 380px;
    }
}


/* --- Header --- */
.site-header {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.site-header a {
    display: inline-block;
    transition: opacity var(--transition), transform var(--transition);
}

.site-header a:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.site-logo {
    /*max-width: min(420px, 85%);*/
    width: 100%;
    height: auto;
}


/* --- Card / Box --- */
.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}


/* --- Hero Image --- */
.hero-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-image img {
    width: 100%;
    /*max-width: 380px;*/
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.lead {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.7;
    color: var(--color-text);
    text-align: center;
    /*margin-bottom: 1.5rem;*/
}


/* --- Divider --- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 2rem 0;
}

.ancre {
    display: block;
    height: 0;
    visibility: hidden;
}


/* --- Form --- */
form {
    animation: fadeInUp 0.5s ease-out;
}

form h3 {
    text-align: center;
    margin-bottom: 0.4rem;
}

form h4 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-field {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.form-field .error-msg {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(90,122,30,0.12);
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

select {
    background-image: 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='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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


/* Labels */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}


/* Radio Group */
.radio-group {
    margin-bottom: 1.25rem;
}

.radio-group .form-label {
    margin-bottom: 0.75rem;
}

.radio-options {
    display: flex;
    gap: 0.75rem;
}

.radio-option {
    flex: 1;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg);
    transition: all var(--transition);
    user-select: none;
}

.radio-option input[type="radio"]:checked + label {
    border-color: var(--color-primary);
    background: rgba(90,122,30,0.08);
    color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(90,122,30,0.1);
}

.radio-option label:hover {
    border-color: var(--color-primary-light);
    background: rgba(90,122,30,0.04);
}


/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 0.9rem 2rem;
    margin-top: 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-submit:hover::after {
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
}


/* Flash Messages */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(220,53,69,0.08);
    border-color: rgba(220,53,69,0.2);
    color: var(--color-error);
}

.alert-success {
    background: rgba(76,175,80,0.08);
    border-color: rgba(76,175,80,0.2);
    color: var(--color-success);
}


/* --- Messages (confirmation, deadline) --- */
.message {
    text-align: center;
    padding: 2rem 0;
}

.message h1,
.message-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.message i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.message-confirmation h1,
.message-confirmation .message-title {
    color: var(--color-success);
}

.message-confirmation i {
    color: var(--color-success);
}

.message .lead {
    color: var(--color-text-muted);
}


/* --- Footer --- */
.site-footer {
    background: var(--color-bg-footer);
    color: var(--color-text-light);
    margin-top: 3rem;
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-inner {
    max-width: var(--container-max-wide);
    margin: 0 auto;
}

.site-footer a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity var(--transition);
}

.site-footer a:hover {
    opacity: 1;
    color: #fff;
}

.footer-address {
    font-style: normal;
    margin-bottom: 0.25rem;
}

.footer-sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}

.mobile-break {
    display: none;
}

.desktop-sep {
    display: inline;
}

@media (max-width: 859px) {
    .mobile-break {
        display: block;
    }

    .desktop-sep {
        display: none;
    }
}

.footer-legal {
    opacity: 0.5;
}

.footer-legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }


/* --- Responsive --- */
@media (max-width: 480px) {
    .site-header {
        padding: 2rem 0 1rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .radio-options {
        gap: 0.5rem;
    }

    .btn-submit {
        padding: 0.85rem 1.5rem;
    }
}

@media (min-width: 860px) {
    .lead {
        text-align: left;
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }
}


/* --- Back Button --- */
.btn-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(90,122,30,0.06);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.btn-back:hover {
    background: rgba(90,122,30,0.12);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}


/* --- Mentions / Terms --- */
.page-header {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
}

.terms {
    margin-bottom: 1.5rem;
}

.terms dt {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.terms dd {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}


/* --- Utility --- */
.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.important {
    color: var(--color-error);
    font-weight: 600;
}

.date-anni {
    color: var(--color-primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

/* Hidden fields - no wrapper */
input[type="hidden"] {
    display: none;
}
