/* === IRIS LINGERIE - Feedback Form v3 === */

:root {
    --pink: #c9a4a4;
    --pink-light: #f5eaea;
    --pink-dark: #a07070;
    --pink-glow: rgba(201, 164, 164, 0.25);
    --gold: #c9a96e;
    --gold-light: #f5ecd8;
    --text: #2d2d2d;
    --text-light: #888;
    --text-muted: #aaa;
    --bg: #ffffff;
    --white: #fff;
    --border: #ebe5e0;
    --error: #c44d4d;
    --success: #6aad7a;
    --radius: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.10);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 16px 48px;
}


/* ====== PROGRESS BAR ====== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 20px 0 28px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ====== CARDS ====== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card > p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ====== INTRO CARD ====== */
.intro-card {
    text-align: center;
    padding: 36px 28px;
    border-left: 3px solid var(--pink);
    text-align: left;
}

.intro-card h2 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.intro-divider {
    width: 32px;
    height: 2px;
    background: var(--pink);
    margin: 16px 0;
    border-radius: 2px;
}

.intro-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ====== FORMS ====== */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group > label {
    display: block;
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: var(--text);
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--white);
    color: var(--text);
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

textarea {
    resize: vertical;
    min-height: 72px;
}

.hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 15px 28px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    width: 100%;
}

.btn-primary {
    background: var(--text);
    color: var(--white);
}

.btn-primary:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--pink);
    background: var(--pink-light);
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-row .btn-secondary {
    flex: 0 0 auto;
    width: auto;
    padding: 15px 24px;
}

.btn-row .btn-primary {
    flex: 1;
}

/* ====== ERROR ====== */
.error-message {
    background: #fef2f2;
    border: 1px solid #f5c6c6;
    color: var(--error);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ====== PRODUCT CARDS (selection) ====== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.product-card {
    display: block;
    cursor: pointer;
}

.product-card input[type="checkbox"] {
    display: none;
}

.product-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    transition: all var(--transition);
    background: var(--white);
}

.product-card:hover .product-card-inner {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.product-card input:checked + .product-card-inner {
    border-color: var(--pink-dark);
    background: var(--pink-light);
}

.product-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--bg);
}

.product-image.placeholder {
    background: linear-gradient(135deg, var(--pink-light), var(--gold-light));
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .variant {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.product-info .quantity {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Disabled product card (not in return) */
.product-card.disabled {
    cursor: default;
}

.product-card-inner.disabled-inner {
    opacity: 0.45;
    background: var(--bg);
    border-color: var(--border);
}

.not-returned-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

.product-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.return-note {
    font-size: 0.78rem;
    color: var(--pink-dark);
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}

.check-circle {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.check-mark {
    font-size: 0.75rem;
    color: transparent;
    transition: color var(--transition);
}

.product-card input:checked + .product-card-inner .check-circle {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
}

.product-card input:checked + .product-card-inner .check-mark {
    color: var(--white);
}

/* ====== PRODUCT FEEDBACK HERO ====== */
.product-feedback-card {
    padding: 0;
    overflow: hidden;
}

.product-feedback-hero {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-light), var(--gold-light));
}

.product-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: white;
}

.product-hero-overlay h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.product-hero-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
}

.product-feedback-body {
    padding: 28px 28px 32px;
}

/* ====== VISUAL RADIO (emoji cards) ====== */
.visual-radio-group {
    display: flex;
    gap: 10px;
}

.visual-radio {
    flex: 1;
    cursor: pointer;
}

.visual-radio input {
    display: none;
}

.visual-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 2px solid var(--border);
    border-radius: 14px;
    transition: all var(--transition);
    background: var(--white);
}

.visual-radio-icon {
    font-size: 1.6rem;
}

.visual-radio-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.visual-radio input:checked + .visual-radio-content {
    border-color: var(--pink-dark);
    background: var(--pink-light);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.visual-radio input:checked + .visual-radio-content .visual-radio-label {
    color: var(--pink-dark);
}

.visual-radio:hover .visual-radio-content {
    border-color: var(--pink);
}

/* ====== VISUAL CHECKBOXES (with icons) ====== */
.visual-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.visual-checkbox {
    cursor: pointer;
}

.visual-checkbox input {
    display: none;
}

.visual-checkbox-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 400;
    height: 100%;
}

.visual-checkbox-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.visual-checkbox input:checked + .visual-checkbox-content {
    border-color: var(--pink-dark);
    background: var(--pink-light);
    font-weight: 500;
    color: var(--pink-dark);
}

.visual-checkbox:hover .visual-checkbox-content {
    border-color: var(--pink);
}

/* ====== SCALE GROUP (1-5) ====== */
/* Size radio group (XS - XXL) */
.size-radio-group {
    display: flex;
    gap: 8px;
}

.size-radio {
    cursor: pointer;
    flex: 1;
}

.size-radio input {
    display: none;
}

.size-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.size-radio:hover span {
    border-color: var(--pink);
}

.size-radio input:checked + span {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    font-weight: 600;
}

.scale-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scale-label-left,
.scale-label-right {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scale-option {
    cursor: pointer;
    flex: 1;
}

.scale-option input {
    display: none;
}

.scale-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    background: var(--white);
}

.scale-option input:checked + span {
    border-color: var(--pink-dark);
    background: var(--pink-dark);
    color: var(--white);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.scale-option:hover span {
    border-color: var(--pink);
}

/* ====== CONFIRMATION ====== */
.confirmation-card {
    text-align: center;
    padding: 48px 28px;
}

.confirmation-icon-wrap {
    margin-bottom: 20px;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--success), #4a9a5a);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(106, 173, 122, 0.35);
}

.confirmation-card h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.confirmation-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    margin: 20px auto;
    border-radius: 2px;
}

.confirmation-card .note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 28px;
}


/* ====== MOBILE ====== */
@media (max-width: 520px) {
    .container {
        padding: 12px 12px 36px;
    }

    .brand {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .intro-card {
        padding: 32px 20px;
    }

    .intro-stats {
        gap: 16px;
    }

    .product-feedback-hero {
        height: 150px;
    }

    .product-feedback-body {
        padding: 24px 20px 28px;
    }

    .visual-radio-group {
        gap: 8px;
    }

    .visual-radio-content {
        padding: 12px 6px;
    }

    .visual-radio-icon {
        font-size: 1.3rem;
    }

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

    .product-image {
        width: 60px;
        height: 60px;
    }

    .scale-label-left,
    .scale-label-right {
        display: none;
    }
}
