/* Fitness Trainer Order Questions Styles */

.ft-order-questions-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ft-order-questions-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.ft-order-question {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ft-order-question h4 {
    color: #0073aa;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 0;
}

.ft-question-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ft-question-field {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.ft-question-field:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.ft-question-field.ft-error {
    border-color: #dc3232;
    background: #fef7f7;
}

.ft-question-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.ft-required {
    color: #dc3232;
    font-weight: bold;
    margin-left: 3px;
}

.ft-question-help {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-style: italic;
}

.ft-question-input {
    margin-top: 8px;
}

/* Input Styles */
.ft-input,
.ft-textarea,
.ft-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.ft-input:focus,
.ft-textarea:focus,
.ft-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ft-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio and Checkbox Styles */
.ft-radio-group,
.ft-checkbox-group,
.ft-yes-no-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-radio-label,
.ft-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0;
}

.ft-radio-label:hover,
.ft-checkbox-label:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.ft-radio-label input[type="radio"],
.ft-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.ft-radio-label input[type="radio"]:checked+.ft-radio-text,
.ft-checkbox-label input[type="checkbox"]:checked+.ft-checkbox-text {
    color: #0073aa;
    font-weight: 600;
}

.ft-radio-label:has(input:checked),
.ft-checkbox-label:has(input:checked) {
    border-color: #0073aa;
    background: #e6f3ff;
}

/* Required field styling */
.ft-question-field[data-required="true"] .ft-radio-group,
.ft-question-field[data-required="true"] .ft-checkbox-group {
    border: 2px solid #ff6b6b;
    border-radius: 4px;
    padding: 8px;
    background: #fff5f5;
}

.ft-question-field[data-required="true"] .ft-radio-group:has(input:checked),
.ft-question-field[data-required="true"] .ft-checkbox-group:has(input:checked) {
    border-color: #28a745;
    background: #f0fff4;
}

/* Error state for radio/checkbox groups */
.ft-question-field.ft-error .ft-radio-group,
.ft-question-field.ft-error .ft-checkbox-group {
    border-color: #dc3545;
    background: #fef7f7;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Rating Styles */
.ft-rating-group {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.ft-rating-label {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: color 0.2s ease;
    padding: 5px;
}

.ft-rating-label:hover,
.ft-rating-label.ft-rating-hover {
    color: #ffc107;
}

.ft-rating-label.ft-rating-selected {
    color: #ffc107;
}

.ft-rating-input {
    display: none;
}

/* File Upload Styles */
.ft-file-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ft-file-input:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.ft-file-name {
    margin-top: 8px;
    padding: 6px 10px;
    background: #e6f3ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    color: #0073aa;
    font-size: 12px;
}

/* Content Blocks */
.ft-content-block {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

.ft-content-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.ft-content-image {
    text-align: center;
    margin: 15px 0;
}

.ft-content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ft-content-wysiwyg {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Form Actions */
.ft-form-actions {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
}

.ft-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.ft-submit-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 115, 170, 0.3);
}

.ft-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ft-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ft-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.ft-error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ft-error-message::before {
    content: "⚠";
    font-size: 14px;
}

/* Success/Error Messages */
.ft-message {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

.ft-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ft-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Responses Display */
.ft-question-responses {
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.ft-question-responses h5 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
}

.ft-responses-list {
    margin-top: 10px;
}

.ft-response-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ft-response-item:last-child {
    margin-bottom: 0;
}

.ft-response-question {
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.ft-response-question strong {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.ft-response-type {
    color: #666;
    font-size: 11px;
    font-style: italic;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.ft-response-answer {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.ft-response-text {
    display: block;
    padding: 5px 0;
}

.ft-response-list {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.ft-response-list li {
    margin-bottom: 3px;
    padding: 2px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ft-order-questions-section {
        margin: 20px 0;
        padding: 15px;
    }

    .ft-order-question {
        padding: 15px;
    }

    .ft-question-field {
        padding: 12px;
    }

    .ft-radio-group,
    .ft-checkbox-group,
    .ft-yes-no-group {
        gap: 6px;
    }

    .ft-radio-label,
    .ft-checkbox-label {
        padding: 6px 10px;
    }

    .ft-rating-group {
        justify-content: center;
    }

    .ft-rating-label {
        font-size: 18px;
    }

    .ft-submit-btn {
        width: 100%;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .ft-order-question h4 {
        font-size: 16px;
    }

    .ft-question-field {
        padding: 10px;
    }

    .ft-input,
    .ft-textarea,
    .ft-select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .ft-rating-label {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .ft-order-questions-section {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .ft-submit-btn,
    .ft-form-actions {
        display: none;
    }

    .ft-order-question {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ft-question-field {
        border: 2px solid #000;
    }

    .ft-input,
    .ft-textarea,
    .ft-select {
        border: 2px solid #000;
    }

    .ft-radio-label,
    .ft-checkbox-label {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .ft-question-field,
    .ft-radio-label,
    .ft-checkbox-label,
    .ft-submit-btn,
    .ft-message {
        transition: none;
    }

    .ft-spinner {
        animation: none;
    }
}
