/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top left, #272727 0, #000000 55%, #050505 100%);
    color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 760px;
    width: 100%;
    margin: 32px auto;
    padding: 0 16px;
}

.feedback-form {
    display: flex;
    justify-content: center;
}

.form-shell {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #050608;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Loading */
.loading-screen {
    text-align: center;
    padding: 80px 20px;
    color: #f5f5f5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.06);
    border-top-color: #f58220;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message-screen, .thankyou-screen {
    text-align: center;
    padding: 60px 20px;
    background: #050608;
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

.message-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.thankyou-screen .thankyou-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Brand */
.brand-header {
    background: #000;
    padding: 18px 24px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-height: 52px;
    width: auto;
    display: block;
}

/* Form Header */
.form-header {
    background: linear-gradient(145deg, rgba(5,6,8,0.92), rgba(5,6,8,0.98));
    color: #ffffff;
    padding: 18px 22px 20px;
    border-radius: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.form-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.form-header p {
    opacity: 0.9;
    font-size: 13px;
    max-width: 90%;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    background: #050608;
    padding: 24px;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.form-section h3 {
    font-size: 16px;
    color: #f5f5f5;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(245,245,245,0.08);
}

/* Question Card */
.question-card {
    background: #050608;
    padding: 24px;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.question-card.has-error {
    border-left: 3px solid #dc3545;
}

.question-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.required { color: #dc3545; }

/* Form Controls */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half { flex: 1; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245,130,32,0.2);
}

textarea { resize: vertical; min-height: 80px; }

/* Radio Buttons */
.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.radio-option:hover { border-color: #f58220; background: rgba(245,130,32,0.06); }
.radio-option.selected { border-color: #f58220; background: rgba(245,130,32,0.14); }

.radio-option input[type="radio"] { margin-right: 10px; accent-color: #f58220; }

/* Rating Buttons (1-5) */
.rating-group {
    display: flex;
    gap: 8px;
}

.rating-btn {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #d1d5db;
}

.rating-btn:hover { border-color: #f58220; color: #fbbf77; }
.rating-btn.selected { border-color: #f58220; background: linear-gradient(135deg, #f58220, #ff9f43); color: #000; }

/* Star Rating */
.star-rating { display: flex; gap: 6px; }

.star-btn {
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #3d3d3d;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.star-btn:hover, .star-btn.active { color: #ffb347; }

/* Emoji Rating */
.emoji-rating-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.emoji-rating-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.emoji-rating-item:hover {
    border-color: #f58220;
    background: rgba(245,130,32,0.06);
    transform: translateY(-2px);
}

.emoji-rating-item.selected {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.emoji-rating-face {
    font-size: 36px;
    line-height: 1;
    transition: transform 0.2s;
}

.emoji-rating-item:hover .emoji-rating-face { transform: scale(1.15); }
.emoji-rating-item.selected .emoji-rating-face { transform: scale(1.2); }

.emoji-rating-label {
    font-size: 11px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
}

.emoji-rating-item.selected .emoji-rating-label { font-weight: 600; }

/* Yes/No */
.yesno-group { display: flex; gap: 12px; }

.yesno-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.yesno-btn:hover { border-color: #f58220; background: rgba(245,130,32,0.06); }
.yesno-btn.selected-yes { border-color: #28a745; background: rgba(40,167,69,0.18); color: #ffffff; }
.yesno-btn.selected-no { border-color: #dc3545; background: rgba(220,53,69,0.18); color: #ffffff; }

/* Submit */
.form-actions {
    background: #050608;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: none;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #f58220, #ff9f43);
    color: #000;
    border: none;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(245,130,32,0.55);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Banner */
.error-banner {
    background: rgba(220,53,69,0.16);
    color: #fecaca;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

/* Validation */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 12px 12px; margin: 20px auto; }
    .form-shell { border-radius: 16px; }
    .brand-header { padding: 14px 16px 8px; }
    .form-header { padding: 16px 14px 18px; }
    .form-header h1 { font-size: 19px; }
    .form-header p { max-width: 100%; }
    .form-header h1 { font-size: 20px; }
    .form-section, .question-card, .form-actions { padding: 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .rating-btn { width: 42px; height: 42px; font-size: 16px; }
    .star-btn { font-size: 30px; }
    .emoji-rating-group { gap: 4px; }
    .emoji-rating-item { padding: 10px 4px; }
    .emoji-rating-face { font-size: 28px; }
    .emoji-rating-label { font-size: 9px; }
}
