/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at center, #ab51f0 0%, #000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
}

/* Start Section Styles */
.start-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px 0;
}

.start-btn {
    background: linear-gradient(135deg, #ab51f0, #7a2ec4);
    border: 2px solid black;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(171, 81, 240, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(171, 81, 240, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Hide survey form initially */
.survey-hidden {
    display: none;
}

/* Show survey form when active */
.survey-visible {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

/* Hide start section when survey is shown */
.start-hidden {
    display: none;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Conditional field initially hidden */
.conditional-field {
    display: none;
    margin-top: 12px;
}

.conditional-field.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   HEADER SECTION
   ======================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.header-content {
    background: transparent;
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 40px rgba(250, 228, 127, 0.6), 
                 0 0 80px rgba(171, 81, 240, 0.4);
    letter-spacing: 2px;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 40px rgba(250, 228, 127, 0.6), 
                     0 0 80px rgba(171, 81, 240, 0.4);
    }
    to {
        text-shadow: 0 0 60px rgba(250, 228, 127, 0.8), 
                     0 0 100px rgba(171, 81, 240, 0.6);
    }
}

.subtitle {
    font-size: 1.2em;
    color: #fae47f;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 1.8em;
    color: #ab51f0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fae47f;
    font-weight: 700;
}

.subsection-title {
    color: #fae47f;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}


/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.section {
    background: #111;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #222;
    transition: all 0.3s;
}

.section:hover {
    border-color: #ab51f0;
    box-shadow: 0 10px 40px rgba(171, 81, 240, 0.1);
}


/* ========================================
   FORM ELEMENTS
   ======================================== */

.question {
    margin-bottom: 30px;
}

label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05em;
}

.required {
    color: #fae47f;
}

/* Text Inputs & Textareas */
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 18px;
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ab51f0;
    background: #0a0a0a;
    box-shadow: 0 0 0 4px rgba(171, 81, 240, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}


/* ========================================
   RADIO & CHECKBOX GROUPS
   ======================================== */

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #ab51f0;
    background: #0a0a0a;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ab51f0;
}

.radio-option input:checked ~ span,
.checkbox-option input:checked ~ span {
    color: #fae47f;
    font-weight: 600;
}


/* ========================================
   CONDITIONAL & DYNAMIC FIELDS
   ======================================== */

.conditional-field {
    display: none;
    margin-top: 12px;
    padding-left: 32px;
}

.conditional-field.active {
    display: block;
}

/* Nested questions within conditional fields */
.conditional-field .question {
    margin-bottom: 20px;
}

.conditional-field .question:last-child {
    margin-bottom: 0;
}

.checkbox-with-price {
    margin-bottom: 12px;
}

.price-input {
    padding-left: 32px;
}


/* ========================================
   TATTOO ENTRIES
   ======================================== */

.tattoo-entry {
    background: #0a0a0a;
    border: 2px solid #222;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.tattoo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}


/* ========================================
   BUTTONS
   ======================================== */

.btn-add {
    background: transparent;
    border: 2px solid #ab51f0;
    color: #ab51f0;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-add:hover {
    background: #ab51f0;
    color: #000;
    transform: translateY(-2px);
}

.btn-remove {
    background: transparent;
    border: 2px solid #ff4444;
    color: #ff4444;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #ff4444;
    color: #fff;
}

.submit-btn {
    background: linear-gradient(135deg, #ab51f0, #7a2ec4);
    border: none;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(171, 81, 240, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(171, 81, 240, 0.4);
}


/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.success-message {
    display: none;
    background: linear-gradient(135deg, #fae47f, #f0d84f);
    color: #000;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    
    .section {
        padding: 25px;
    }
    
    .tattoo-grid {
        grid-template-columns: 1fr;
    }
    
    .conditional-field {
        padding-left: 16px;
    }
}