/* CSS Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #4A4A4A;
    background-color: #fcf5f7;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Background & Layout */
.page-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.8;
}

.layout-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin: 60px auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Card */
.main-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(232, 180, 184, 0.5);
    border-radius: 24px;
    padding: 0 40px 40px 40px;
    box-shadow: 0 20px 40px rgba(196, 123, 133, 0.15);
    margin-bottom: 20px;
}

/* Hero Feature Image */
.hero-image-container {
    width: 140px;
    height: 140px;
    margin: -70px auto 20px auto;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
.header {
    text-align: center;
    margin-bottom: 30px;
}
h1.campaign-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #c47b85;
    margin: 0 0 5px 0;
    line-height: 1.2;
}
#business-name {
    font-weight: 600;
    color: #a46d75;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-size: 0.9rem;
}
.intro-text {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6a4a4e;
    margin-bottom: 30px;
}

/* Countdown */
.countdown {
    margin-top: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(232, 180, 184, 0.4);
    padding: 12px 20px;
    border-radius: 16px;
}
.countdown-label {
    font-size: 0.85rem;
    color: #a46d75;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    min-width: 55px;
    box-shadow: 0 4px 10px rgba(196, 123, 133, 0.1);
}
.cd-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c47b85;
    line-height: 1;
    margin-bottom: 4px;
}
.cd-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #880e4f;
    font-weight: 600;
}
.cd-ended {
    color: #880e4f;
    font-weight: 600;
    padding: 5px;
}

#status-container {
    text-align: center;
    padding: 40px 0;
    color: #a46d75;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .main-container { padding: 0 20px 30px 20px; }
    h1.campaign-title { font-size: 2.2rem; }
}
.form-group {
    margin-bottom: 20px;
}
.form-section-title {
    margin: 30px 0 20px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #c47b85;
    border-bottom: 1px solid rgba(232, 180, 184, 0.4);
    padding-bottom: 10px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6a4a4e;
    font-size: 0.95rem;
}
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8b4b8;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: inherit;
    color: #4a4a4a;
    transition: all 0.3s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: #c47b85;
    box-shadow: 0 0 0 3px rgba(196, 123, 133, 0.2);
    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='%23c47b85' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox Styles */
.checkbox-options {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e8b4b8;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}
.mb-2 {
    margin-bottom: 12px;
}
.mb-2:last-child {
    margin-bottom: 0;
}
.checkbox-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c47b85;
}
.checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Follow Styles */
.follow-prompt {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #6a4a4e;
}
.form-social-buttons {
    margin-bottom: 25px;
}
.form-social-buttons .btn {
    padding: 12px;
    font-size: 0.95rem;
}
.mt-3 {
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.btn-primary {
    background: linear-gradient(135deg, #e8b4b8 0%, #c47b85 100%);
    color: #fff;
    box-shadow: 0 6px 15px rgba(196, 123, 133, 0.3);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 123, 133, 0.5);
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: #c47b85;
    border: 1px solid #e8b4b8;
}
.btn-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(196, 123, 133, 0.2);
}

.error-msg {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Wheel Game Area */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}
.game-header h2 {
    font-family: 'Playfair Display', serif;
    color: #c47b85;
    font-size: 2rem;
    margin: 0 0 10px 0;
}
.wheel-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px auto;
}
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #a46d75;
    z-index: 10;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}
.wheel-spinner {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start at 12:00 */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid #fff;
}
#wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Results & Prizes */
.result-header {
    text-align: center;
    margin-bottom: 25px;
}
.result-header h2 {
    font-family: 'Playfair Display', serif;
    color: #c47b85;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}
.prize-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 2px dashed #e8b4b8;
    margin-bottom: 30px;
}
#prize-image {
    max-width: 150px;
    border-radius: 12px;
    margin-bottom: 15px;
}
#prize-title {
    color: #880e4f;
    font-size: 1.4rem;
    margin: 0 0 15px 0;
}
.prize-code-box p {
    background: #fcf5f7;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    margin: 0;
}
.prize-code-box strong {
    color: #c47b85;
    font-size: 1.3rem;
}
.prize-qr-box {
    margin-top: 15px;
}
#prize-qr-img {
    max-width: 120px;
    margin-bottom: 5px;
}

/* Share & Bonus Entries */
.share-panel {
    background: rgba(232, 180, 184, 0.15);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}
.share-panel h3 {
    margin: 0 0 10px 0;
    color: #880e4f;
}
.share-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.share-input-group input {
    flex: 1;
    margin: 0;
    background: #fff;
    font-size: 0.9rem;
}
.share-input-group button {
    width: auto;
    padding: 0 20px;
    margin: 0;
    border-radius: 12px;
    background: #a46d75;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.share-input-group button:hover {
    background: #880e4f;
}

/* Socials */
.social-follows {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(232, 180, 184, 0.4);
    text-align: center;
}
.social-follows h3 {
    color: #880e4f;
    margin: 0 0 10px 0;
}
.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.social-buttons .btn {
    flex: 1;
    margin: 0;
}
@media (max-width: 500px) {
    .social-buttons { flex-direction: column; }
    .share-input-group { flex-direction: column; }
    .share-input-group button { padding: 14px; }
}

/* Footer & Modal */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 180, 184, 0.4);
}
.text-btn {
    background: none;
    border: none;
    color: #a46d75;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}
.text-btn:hover {
    color: #880e4f;
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    color: #6a4a4e;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
}
.close-btn:hover {
    color: #333;
}
.modal-body {
    padding: 25px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

#wbx-powered-by-slot {
    width: 100%;
    text-align: center;
}
