/**
 * Survey Frontend Styles
 *
 * Styles for the multi-step survey form.
 * Loaded on frontend pages with [survey_form] shortcode.
 */

/* Survey Flow Container */
.survey-flow-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.survey-flow-header {
    margin-bottom: 30px;
}

.survey-flow-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.survey-flow-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.survey-flow-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px;
}

/* Form Elements */
.survey-flow-form {
    width: 100%;
}

.survey-flow-question-group {
    margin-bottom: 30px;
}

.survey-flow-question {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.survey-flow-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

/* Choice Buttons */
.survey-flow-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.survey-flow-choice-button {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.survey-flow-choice-button:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.survey-flow-choice-button.selected {
    background: #2271b1;
    border-color: #135e96;
    color: #ffffff;
}

.survey-flow-choice-button.selected:hover {
    background: #135e96;
    border-color: #0a4a77;
}

.survey-flow-choice-button-large {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input Fields */
.survey-flow-input,
.survey-flow-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.survey-flow-input:focus,
.survey-flow-textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.survey-flow-textarea {
    min-height: 100px;
    resize: vertical;
}

.survey-flow-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Song Request Items */
.survey-flow-song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.survey-flow-song-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.survey-flow-song-item input {
    flex: 1;
}

.survey-flow-song-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.survey-flow-song-remove:hover {
    background: #c82333;
}

.survey-flow-add-song {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.survey-flow-add-song:hover {
    background: #218838;
}

/* Checkbox Groups */
.survey-flow-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.survey-flow-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.survey-flow-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.survey-flow-checkbox-item label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

/* Button Group */
.survey-flow-button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.survey-flow-button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.survey-flow-button-primary {
    background: #2271b1;
    color: #ffffff;
}

.survey-flow-button-primary:hover {
    background: #135e96;
}

.survey-flow-button-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.survey-flow-button-secondary:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

/* Progress Bar */
.survey-flow-footer {
    margin-top: 40px;
}

.survey-flow-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.survey-flow-progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

.survey-flow-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Completion Page */
.survey-flow-completion {
    text-align: center;
    padding: 60px 40px;
}

.survey-flow-completion-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.survey-flow-completion-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
}

.survey-flow-completion-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Error Messages */
.survey-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 16px 20px;
    color: #842029;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .survey-flow-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .survey-flow-content {
        padding: 30px 20px;
    }

    .survey-flow-title {
        font-size: 24px;
    }

    .survey-flow-section-title {
        font-size: 20px;
    }

    .survey-flow-button-group {
        flex-direction: column-reverse;
    }

    .survey-flow-button {
        width: 100%;
    }
}
