:root {
    --primary: #c2a675; /* Premium gold */
    --primary-hover: #b09361;
    --dark: #1a1c20;
    --dark-alt: #2a2d34;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #fdfbf7;
    --error: #e53e3e;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--dark);
    background-image: linear-gradient(rgba(26, 28, 32, 0.7), rgba(26, 28, 32, 0.85)), url('https://offertabs.s3.amazonaws.com/offer/5vh4n6/site/media/6a95ac386a3018.78023126.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* MANDATORY HIDDEN CLASS */
.hidden {
    display: none !important;
}

.req {
    color: var(--error);
    margin-left: 2px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.main-content {
    width: 100%;
    max-width: 650px;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 3.5rem 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative top line */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #a6844c, #c2a675, #e0cd9f, #c2a675, #a6844c);
}

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

.brand-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    mix-blend-mode: multiply;
}

.title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title .highlight {
    font-style: italic;
    color: var(--primary);
}

.description {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Property Link */
.property-link-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.thank-you-container .property-link-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.property-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.property-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}


/* Prize Details */
.prize-details {
    background: rgba(194, 166, 117, 0.06);
    border: 1px solid rgba(194, 166, 117, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    text-align: left;
}

.prize-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.prize-list li:last-child {
    margin-bottom: 0;
}

.prize-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Countdown */
.countdown-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.time-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1 1 100%;
}

@media (min-width: 500px) {
    .half-width {
        flex: 1 1 calc(50% - 0.75rem);
    }
    .third-width {
        flex: 1 1 calc(33.333% - 1rem);
    }
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-alt);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 166, 117, 0.2);
}

input::placeholder {
    color: #9ca3af;
}

.checkbox-group {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.custom-checkbox {
    margin-top: 0.15rem;
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.privacy-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--primary-hover);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: var(--dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(194, 166, 117, 0.6);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-message,
.error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.status-message {
    background: rgba(194, 166, 117, 0.1);
    color: var(--primary);
    border: 1px solid rgba(194, 166, 117, 0.3);
}

.error-message {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error);
    border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Thank You State */
.thank-you-container {
    text-align: center;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(194, 166, 117, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.thank-you-container h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.thank-you-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.share-panel-inner {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.share-panel h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.share-desc {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
}

.share-link-wrapper {
    display: flex;
    gap: 0.5rem;
}

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

#copy-link {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#copy-link:hover {
    background: var(--primary-hover);
}

.copy-success {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #38a169;
    font-weight: 500;
}

/* Social Follow Section */
.social-follow-section {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.social-follow-section p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(194, 166, 117, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(194, 166, 117, 0.3);
}

.social-icons svg {
    width: 22px;
    height: 22px;
}

/* Rules Section */
.rules-section {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.5rem;
}

.rules-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 1rem 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.rules-toggle:hover {
    color: var(--primary);
}

.rules-toggle .chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.rules-toggle.open .chevron {
    transform: rotate(180deg);
}

.rules-content {
    padding: 0.5rem 0 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
}

.rules-content p {
    margin-bottom: 0.75rem;
}

.rules-content p:last-child {
    margin-bottom: 0;
}

.rules-content strong {
    color: var(--dark);
    font-weight: 600;
}

/* Powered by slot configuration */
#wbx-powered-by-slot {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .main-content {
        padding: 2.5rem 1.5rem 2rem;
    }
    .title {
        font-size: 2.25rem;
    }
    .countdown {
        gap: 1rem;
    }
    .time-box span {
        font-size: 1.5rem;
    }
}
