/* ==== CSS RESET & VARIABLES ==== */
:root {
    --sage: #a8b5a0;
    --sage-light: #c5d0be;
    --ivory: #fdf8ef;
    --blush: #f4d2c5;
    --emerald: #064e3b;
    --emerald-light: rgba(6, 78, 59, 0.6);
    --emerald-faded: rgba(6, 78, 59, 0.15);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Pinyon Script', cursive;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--ivory);
    color: var(--emerald);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--emerald);
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--emerald-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==== SPLIT HERO ==== */
.split-hero {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    background-color: var(--ivory);
}

@media (min-width: 900px) {
    .split-hero {
        flex-direction: row;
    }
    .split-hero .text-col, .split-hero .image-col {
        flex: 1;
    }
}

.text-col {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (min-width: 900px) {
    .text-col {
        padding: 6rem 4rem;
    }
}

.brand {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--emerald-light);
}

.split-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .split-hero h1 { font-size: 4.5rem; }
}

.script-accent {
    font-family: var(--font-script);
    font-size: 1.3em;
    font-weight: 400;
    color: var(--sage);
    display: block;
    margin-top: -0.2em;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 2.5rem auto;
    color: var(--emerald-light);
}

.prize-card {
    background: #fff;
    border: 1px solid var(--emerald-faded);
    padding: 1.5rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: -4px; bottom: -4px;
    border: 1px solid var(--emerald-faded);
    z-index: -1;
}

.prize-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--blush);
    margin-bottom: 0.5rem;
}

.prize-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.image-col {
    position: relative;
    min-height: 50vh;
}

.image-col img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ==== BUTTONS ==== */
.btn-primary {
    display: inline-block;
    background-color: var(--emerald);
    color: var(--ivory);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--sage);
    color: var(--emerald);
}

.btn-primary.full-width {
    width: 100%;
}

.btn-primary.sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==== FORM SECTION ==== */
.form-section {
    padding: 6rem 0;
    background-color: var(--blush);
    background: linear-gradient(to bottom, var(--ivory) 0%, var(--blush) 100%);
}

.form-container {
    max-width: 700px;
    background: #fff;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.05);
    border: 1px solid var(--emerald-faded);
}

@media (max-width: 600px) {
    .form-container {
        padding: 2rem 1.5rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--emerald-light);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.input-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--emerald);
}

.label-hint {
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--emerald-light);
    font-style: italic;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--emerald);
    background-color: #faf9f6;
    border: 1px solid var(--emerald-faded);
    transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--emerald);
    background-color: #fff;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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='%23064e3b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea {
    resize: vertical;
}

.word-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--emerald-light);
    margin-top: 0.25rem;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    gap: 0.5rem;
}

.star-rating svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--emerald);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating svg.active, .star-rating svg:hover {
    fill: var(--emerald);
}

/* Segmented Control */
.segmented-control {
    display: flex;
    border: 1px solid var(--emerald-faded);
    background: #faf9f6;
}

.segmented-control input {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: var(--emerald-light);
    border-right: 1px solid var(--emerald-faded);
    margin: 0;
}

.segmented-control label:last-child {
    border-right: none;
}

.segmented-control input:checked + label {
    background: var(--sage);
    color: var(--emerald);
    font-weight: 500;
}

/* File Upload */
.file-input-wrapper {
    position: relative;
    background: #faf9f6;
    border: 1px solid var(--emerald-faded);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dummy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.file-dummy span {
    color: var(--emerald-light);
    font-size: 0.95rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none; /* Let the file input absorb clicks */
}

.error-message {
    background-color: #fef2f2;
    color: #991b1b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #991b1b;
    font-size: 0.9rem;
}

/* ==== THANK YOU STATE ==== */
.thank-you-card {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--sage);
    margin: 0 auto 1.5rem;
}

.thank-you-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.thank-you-card p {
    font-size: 1.1rem;
    color: var(--emerald-light);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.share-panel {
    background: var(--ivory);
    border: 1px solid var(--emerald-faded);
    padding: 2rem;
    margin-top: 2rem;
}

.share-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.share-input-group input {
    flex: 1;
    background: #fff;
}

/* ==== REVIEWS GRID ==== */
.reviews-section {
    padding: 6rem 0;
    background-color: var(--ivory);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: #fff;
    border: 1px solid var(--emerald-faded);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(6, 78, 59, 0.05);
}

.review-stars-static {
    display: flex;
    gap: 2px;
    margin-bottom: 1.5rem;
}

.review-stars-static svg {
    width: 18px;
    height: 18px;
    fill: var(--emerald);
}

.review-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--emerald-faded);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--sage-light);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-product {
    font-size: 0.8rem;
    color: var(--emerald-light);
}

/* ==== STATUS BANNER ==== */
.status-banner {
    background-color: var(--emerald);
    color: var(--ivory);
    text-align: center;
    padding: 1rem;
    font-weight: 500;
}
