/* ========================================
   Tomodachi Life - Chiranlemon Island Citizen Request Sheet
   Styles inspired by the game's colorful UI
   ======================================== */

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

:root {
    /* Main Colors - Lemon/Citrus theme */
    --yellow-bg: #f5c518;
    --orange-accent: #e85d04;
    --orange-light: #f48c06;
    --green-accent: #2d6a4f;
    --green-light: #40916c;
    --teal-border: #40c9a2;
    --blue-accent: #0096c7;
    --cream: #fef3e2;
    --white: #ffffff;
    --dark-text: #1a1a2e;
    --lemon-yellow: #FFE135;
    --lemon-green: #C5E17A;

    /* Border Colors */
    --border-orange: #d35400;
    --border-blue: #16697a;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Border Frame - Orange/Teal outer border */
.border-frame {
    background: linear-gradient(180deg, var(--orange-accent) 0%, var(--orange-light) 50%, var(--teal-border) 100%);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
    width: 100%;
}

.container {
    background: var(--yellow-bg);
    border-radius: 10px;
    padding: 25px 30px;
    position: relative;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.title-left {
    justify-self: start;
}

.logo-image {
    height: 160px;
    width: auto;
    object-fit: contain;
}

.title-center {
    display: flex;
    justify-content: center;
    justify-self: center;
}

/* Chiranlemon Badge with Logo Image */
.chiranlemon-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.chiranlemon-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.15));
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
}

.chiranlemon-badge .request-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #5D4037;
    text-shadow: 1px 1px 0 var(--white);
    background: linear-gradient(180deg, #FFFACD 0%, #F0E68C 100%);
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.cloud-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chiranlemon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.9rem;
    color: #2E8B57;
    text-shadow: 2px 2px 0 var(--white), -1px -1px 0 #228B22;
    letter-spacing: 1px;
}

.lemon-decoration {
    font-size: 1.4rem;
    animation: bounce-lemon 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce-lemon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(10deg);
    }
}

.island-text {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--dark-text);
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 var(--white);
    margin-top: 2px;
}

.request-text {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: #5D4037;
    text-shadow: 1px 1px 0 var(--white);
}

/* ========================================
   FORM CONTENT LAYOUT
   ======================================== */
.form-content {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
    align-items: start;
}

.column-left {
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.label-title {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

/* ========================================
   LEFT COLUMN - Name, Birthday, Body Type
   ======================================== */
.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid var(--cream);
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    background: var(--white);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--orange-accent);
    box-shadow: 0 0 10px rgba(232, 93, 4, 0.3);
}

.name-input {
    background: var(--cream);
}

/* Birthday Inputs */
.birthday-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-input {
    width: 70px;
    text-align: center;
    border-radius: 50%;
    height: 70px;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.date-separator {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-text);
    margin-top: 15px;
}

.date-label {
    font-size: 0.9rem;
    color: var(--blue-accent);
    font-weight: 700;
    margin-top: 5px;
}

.age-label {
    color: var(--orange-accent);
}

.age-input-group {
    margin-left: 15px;
}

/* Body Type Sliders */
.body-sliders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.body-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.body-icon.small {
    transform: scale(0.7);
}

.body-icon.large {
    transform: scale(1.2);
}

.body-icon.thin {
    transform: scaleX(0.6);
}

.body-icon.wide {
    transform: scaleX(1.4);
}

.body-slider-container {
    flex: 1;
    position: relative;
    height: 24px;
}

.body-slider {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0;
}

.body-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, var(--blue-accent), var(--teal-border));
    border-radius: 10px;
    z-index: 1;
}

.body-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--blue-accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
    left: 50%;
    pointer-events: none;
}

/* ========================================
   CENTER COLUMN - Personality & Options
   ======================================== */
.personality-sliders {
    background: var(--cream);
    border-radius: 15px;
    padding: 15px;
}

.personality-row {
    display: grid;
    grid-template-columns: 90px 50px 1fr 50px;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.personality-row:last-child {
    border-bottom: none;
}

.trait-name {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.trait-label-left,
.trait-label-right {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.trait-label-left {
    text-align: right;
}

.trait-label-right {
    text-align: left;
}

.trait-slider-container {
    position: relative;
    height: 34px;
}

.trait-slider {
    width: 100%;
    height: 34px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 0;
    /* Hide the slider completely, only dots are visible */
}

.trait-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 34px;
    background: transparent;
    cursor: pointer;
}

.trait-slider::-moz-range-thumb {
    width: 30px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.slider-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    pointer-events: auto;
    z-index: 1;
}

.slider-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.slider-dot:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Selected dot - more visible but not too thick */
.slider-dot.selected {
    transform: scale(1.25) !important;
    border: 2px solid #fff !important;
    box-shadow:
        0 0 0 2px var(--orange-accent),
        0 3px 8px rgba(0, 0, 0, 0.35),
        0 0 12px rgba(232, 93, 4, 0.4) !important;
    z-index: 5;
}

/* ALL SLIDERS - Same color palette as Overall (Green to Orange) */
.movement-dots .slider-dot:nth-child(1),
.speech-dots .slider-dot:nth-child(1),
.energy-dots .slider-dot:nth-child(1),
.thinking-dots .slider-dot:nth-child(1),
.overall-dots .slider-dot:nth-child(1) {
    background: #4CAF84;
}

.movement-dots .slider-dot:nth-child(2),
.speech-dots .slider-dot:nth-child(2),
.energy-dots .slider-dot:nth-child(2),
.thinking-dots .slider-dot:nth-child(2),
.overall-dots .slider-dot:nth-child(2) {
    background: #5BBD90;
}

.movement-dots .slider-dot:nth-child(3),
.speech-dots .slider-dot:nth-child(3),
.energy-dots .slider-dot:nth-child(3),
.thinking-dots .slider-dot:nth-child(3),
.overall-dots .slider-dot:nth-child(3) {
    background: #6CC99C;
}

.movement-dots .slider-dot:nth-child(4),
.speech-dots .slider-dot:nth-child(4),
.energy-dots .slider-dot:nth-child(4),
.thinking-dots .slider-dot:nth-child(4),
.overall-dots .slider-dot:nth-child(4) {
    background: #7DD4A8;
}

.movement-dots .slider-dot:nth-child(5),
.speech-dots .slider-dot:nth-child(5),
.energy-dots .slider-dot:nth-child(5),
.thinking-dots .slider-dot:nth-child(5),
.overall-dots .slider-dot:nth-child(5) {
    background: #A8D4A0;
}

.movement-dots .slider-dot:nth-child(6),
.speech-dots .slider-dot:nth-child(6),
.energy-dots .slider-dot:nth-child(6),
.thinking-dots .slider-dot:nth-child(6),
.overall-dots .slider-dot:nth-child(6) {
    background: #C4D98C;
}

.movement-dots .slider-dot:nth-child(7),
.speech-dots .slider-dot:nth-child(7),
.energy-dots .slider-dot:nth-child(7),
.thinking-dots .slider-dot:nth-child(7),
.overall-dots .slider-dot:nth-child(7) {
    background: #D4D47C;
}

.movement-dots .slider-dot:nth-child(8),
.speech-dots .slider-dot:nth-child(8),
.energy-dots .slider-dot:nth-child(8),
.thinking-dots .slider-dot:nth-child(8),
.overall-dots .slider-dot:nth-child(8) {
    background: #E8B86C;
}

/* Options Row */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    margin-top: 15px;
}

.option-group {
    background: transparent;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dating sections */
.dating-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dating-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dating-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-accent);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    background: var(--cream);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--white);
    border-color: var(--orange-accent);
}

.radio-option input,
.checkbox-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--orange-accent);
}

.radio-label,
.checkbox-label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

/* ========================================
   RIGHT COLUMN - Voice & Notes
   ======================================== */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.voice-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--cream);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.voice-btn:hover {
    transform: scale(1.08);
    border-color: var(--orange-accent);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.voice-btn.selected {
    border-color: var(--orange-accent);
    background: linear-gradient(135deg, #fff5eb, #ffe4d4);
    box-shadow: 0 0 15px rgba(232, 93, 4, 0.4);
}

/* Voice Images */
.voice-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Chiranlemon Model */
.chiranlemon-model-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.chiranlemon-model {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.2));
    border-radius: 10px;
}

.notes-group {
    flex: 1;
}

.notes-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 3px solid var(--cream);
    border-radius: 15px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    background: var(--white);
    resize: vertical;
    transition: all 0.3s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--orange-accent);
    box-shadow: 0 0 10px rgba(232, 93, 4, 0.3);
}

/* Reference Section */
.reference-group {
    margin-top: 10px;
}

.reference-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.picrew-link {
    color: var(--teal-border);
    text-decoration: underline;
    font-weight: 700;
}

.picrew-link:hover {
    color: var(--green-accent);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--teal-border), var(--green-light));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 0 var(--green-accent);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--green-accent);
}

.upload-btn input[type="file"] {
    display: none;
}

.reference-preview {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.reference-preview img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid var(--cream);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ========================================
   FOOTER / SUBMIT BUTTON
   ======================================== */
.submit-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.form-footer {
    margin-top: 25px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(180deg, var(--orange-accent) 0%, #c44503 100%);
    color: var(--white);
    border: none;
    padding: 15px 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 0 #a33b03,
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #a33b03,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #a33b03,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .form-content {
        grid-template-columns: 1fr 1fr;
    }

    .column-right {
        grid-column: span 2;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .voice-grid {
        grid-template-columns: repeat(5, 50px);
    }

    .logo-image {
        height: 130px;
    }
}

@media (max-width: 900px) {
    .form-content {
        grid-template-columns: 1fr;
    }

    .column-right {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .voice-grid {
        grid-template-columns: repeat(5, 50px);
        justify-content: center;
    }

    .options-row {
        grid-template-columns: 1fr;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .title-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .title-center {
        justify-content: center;
        padding-right: 0;
        width: 100%;
    }

    .logo-image {
        height: 100px;
    }

    .chiranlemon-logo {
        max-width: 180px;
    }

    .chiranlemon-badge .request-text {
        font-size: 1rem;
    }

    .chiranlemon-model {
        max-width: 220px;
    }

    .chiranlemon-model-container {
        justify-content: center;
        margin-top: 20px;
    }

    /* Submit button centered */
    .submit-container {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .title-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .title-center {
        width: 100%;
    }

    .logo-image {
        height: 70px;
    }

    .chiranlemon-logo {
        max-width: 150px;
    }

    .chiranlemon-badge .request-text {
        font-size: 0.85rem;
        padding: 5px 15px;
    }

    .chiranlemon-model {
        max-width: 280px;
        width: 80%;
    }

    .chiranlemon-model-container {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }

    .birthday-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Personality sliders - vertical layout on mobile */
    .personality-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }

    .trait-name {
        font-size: 0.95rem;
        text-align: center;
        width: 100%;
    }

    /* Slider row with labels on mobile */
    .personality-row .trait-label-left,
    .personality-row .trait-label-right,
    .personality-row .trait-slider-container {
        display: inline-flex;
    }

    .personality-row::after {
        content: '';
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    /* Create a wrapper effect for the slider line */
    .personality-row {
        position: relative;
    }

    .personality-row .trait-label-left {
        position: absolute;
        left: 0;
        bottom: 12px;
        font-size: 0.75rem;
        text-align: left;
    }

    .personality-row .trait-label-right {
        position: absolute;
        right: 0;
        bottom: 12px;
        font-size: 0.75rem;
        text-align: right;
    }

    .personality-row .trait-slider-container {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 20px;
    }

    .slider-dot {
        width: 24px;
        height: 24px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .voice-grid {
        grid-template-columns: repeat(5, 45px);
        justify-content: center;
    }

    .voice-btn {
        width: 45px;
        height: 45px;
    }

    /* Submit button centered */
    .submit-container {
        display: flex;
        justify-content: center;
    }

    .submit-btn {
        font-size: 1.2rem;
        padding: 12px 40px;
    }
}