/* --- Root Variables (ensure these are globally accessible, e.g., at the top of styles.css) --- */
:root {
    --primary-purple: #9a4ccf; /* Your main purple color */
    --accent-pink: #e2007a;   /* Your accent pink color */
    --text-light: #777;       /* Light gray text */
    --background-light: #f9f4ff; /* Page background color */
    --container-bg-light: #fff; /* White background for certain cards */
    --shadow: 0 4px 10px rgba(0,0,0,0.1); /* Soft shadow for cards */

    /* NEW: Specific colors for this design */
    --hero-bg-purple: #9a4ccf; /* Solid purple for hero message background (same as primary-purple) */
    --highlight-yellow: #FFFF00; /* Vibrant yellow for the highlight text */
}

/* --- General Layout (ensure these are in styles.css or a main layout CSS) --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light); /* Page background */
    color: #333; /* Default text color */
}

.container {
    max-width: 960px; /* Max width for content */
    margin: 0 auto; /* Center the container */
    padding: 0 15px; /* Horizontal padding */
}

/* --- Consistent Card Styling for Main Sections (This is the crucial part) --- */
.content-card {
    padding: 30px; /* Internal spacing for all cards */
    border-radius: 10px; /* Rounded corners for all cards */
    box-shadow: var(--shadow); /* Soft shadow for all cards */
    margin-bottom: 30px; /* Space between cards */
    text-align: center; /* Default text alignment for cards */
    /* Remove background-color here. It will be set specifically per card type below. */
}

/* --- Hero Message Specific Styling (Purple background as per image) --- */
.hero-message {
    background-color: var(--hero-bg-purple); /* Solid purple background */
    color: white; /* White text for contrast */
    padding: 20px 30px; /* Adjust padding if needed */
}
.hero-message h1 {
    color: white; /* Ensure heading is white */
    font-size: 2.5em;
    margin-bottom: 10px;
}
.hero-message .highlight {
    font-weight: bold;
    color: var(--highlight-yellow); /* Yellow highlight as per image */
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* --- Form Container Specific Styling (White background as per image) --- */
.form-container {
    background-color: var(--container-bg-light); /* White background */
}
.form-group {
    margin-bottom: 20px;
    text-align: left; /* Align form labels/inputs to left */
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-purple); /* Form labels in purple */
}
.form-group input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: white; /* Explicitly white background for inputs */
    color: #333; /* Input text color */
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.radio-option {
    display: flex;
    align-items: center;
    color: #333; /* Radio button labels color */
}
.radio-option input[type="radio"] {
    margin-right: 8px;
}

/* --- Wheel Section Specific Styling (White background, consistent with form) --- */
.wheel-section {
    background-color: var(--container-bg-light); /* White background */
}
.wheel-section .section-title {
    color: var(--primary-purple);
    font-size: 2.5em;
    margin-bottom: 10px;
}
.wheel-wrapper {
    position: relative;
    width: 90%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 20px auto;
    border: 5px solid var(--primary-purple);
    border-radius: 50%;
    overflow: hidden;
}
#prizeWheel {
    width: 100%;
    height: 100%;
    display: block;
}
.wheel-pointer {
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid var(--accent-pink, #e2007a);
    z-index: 10;
}
.controls-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}
#result {
    margin-top: 20px;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-purple);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Button Styles (common for .btn and .spin-button) --- */
.btn, .spin-button {
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background-color: var(--primary-purple);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover, .spin-button:hover {
    background-color: var(--accent-pink);
}
.btn:disabled, .spin-button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Message Box Styles --- */
.validation-message-box {
    margin-top: 20px;
}
.success-message {
    color: green;
    background-color: #e6ffe6;
    border: 1px solid green;
    padding: 10px;
    border-radius: 5px;
}
.error-message {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    border-radius: 5px;
}

/* --- Social Icons and Back to Home --- */
.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icons img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.social-icons img:hover {
    transform: scale(1.1);
}
.back-to-home {
    margin-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}
.back-to-home-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.back-to-home-btn:hover {
    background-color: #5a6268;
}

/* --- Mobile Responsiveness (adjust as needed) --- */
@media (max-width: 768px) {
    .hero-message h1 {
        font-size: 2em;
    }
    .content-card {
        padding: 20px;
    }
    .form-group input[type="text"] {
        width: calc(100% - 20px);
    }
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    .controls-container {
        flex-direction: column;
        gap: 15px;
    }
}