/**
 * All of the CSS for the public-facing functionality.
 *
 * @package    PDTR_Registration
 * @subpackage PDTR_Registration/public/css
 */
/* Add to your pdtr-questionnaire.css file */
.pdtr-save-progress-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#pdtr-save-progress {
    margin-right: 15px;
}

#pdtr-save-status {
    font-weight: bold;
}

#pdtr-save-status.success {
    color: green;
}

#pdtr-save-status.error {
    color: red;
}

/* Add an autosave indicator */
.pdtr-autosave-indicator {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
}
/* Common Styles */
.pdtr-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pdtr-form h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.pdtr-form .form-description {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
}

.pdtr-form-group {
    margin-bottom: 20px;
}

.pdtr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.pdtr-form-group input[type="email"],
.pdtr-form-group input[type="password"],
.pdtr-form-group input[type="tel"],
.pdtr-form-group input[type="text"],
.pdtr-form-group select,
.pdtr-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.pdtr-form-group input:focus,
.pdtr-form-group select:focus,
.pdtr-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.pdtr-form-group .field-hint {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.pdtr-form-group.form-checkbox {
    display: flex;
    align-items: center;
}

.pdtr-form-group.form-checkbox input {
    margin-right: 10px;
}

.pdtr-form-group.form-checkbox label {
    font-weight: normal;
    margin-bottom: 0;
}

.pdtr-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.pdtr-button:hover {
    background-color: #2980b9;
}

.pdtr-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.pdtr-form-message {
    margin: 20px 0;
}

.pdtr-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.pdtr-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

.pdtr-info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #17a2b8;
}

.login-link, 
.register-link {
    text-align: center;
    margin-top: 15px;
}

.pdtr-logout-button {
    color: #e74c3c;
    text-decoration: underline;
    cursor: pointer;
}

.pdtr-message-box {
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.pdtr-message-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.pdtr-field-error {
    border-color: #e74c3c !important;
}

/* Questionnaire Form Styles */
.pdtr-questionnaire-container {
    max-width: 900px;
}

.pdtr-progress-container {
    margin-bottom: 30px;
}

.pdtr-progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.pdtr-progress-indicator {
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s;
}

.pdtr-progress-text {
    text-align: right;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.pdtr-form-section {
    display: none;
}

.pdtr-form-section.active {
    display: block;
}

.pdtr-form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
}

.pdtr-form-section h4 {
    margin: 25px 0 15px;
    color: #34495e;
}

.pdtr-form-group.required label:after {
    content: " *";
    color: #e74c3c;
}

.pdtr-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.pdtr-checkbox-item {
    display: flex;
    align-items: center;
}

.pdtr-checkbox-item input {
    margin-right: 10px;
}

.pdtr-range-slider {
    margin-top: 10px;
}

.pdtr-range-slider input[type="range"] {
    width: 100%;
    height: 10px;
}

.pdtr-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.pdtr-range-labels span {
    font-size: 12px;
    color: #7f8c8d;
}

.pdtr-prev-button {
    background-color: #95a5a6;
}

.pdtr-prev-button:hover {
    background-color: #7f8c8d;
}

/* Booking Page Styles */
.pdtr-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pdtr-booking-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.pdtr-booking-success {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.pdtr-booking-instructions {
    margin-bottom: 30px;
}

.pdtr-booking-action {
    text-align: center;
    margin: 30px 0;
}

.pdtr-booking-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
}

.pdtr-booking-note {
    font-size: 14px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #6c757d;
}

.pdtr-booking-callback {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
}

.pdtr-booking-callback p {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdtr-form-container,
    .pdtr-booking-container {
        padding: 20px;
    }
    
    .pdtr-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .pdtr-button {
        width: 100%;
    }
    
    .pdtr-checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Multi-step Form Styles */
.pdtr-form-section {
    display: none;
}

.pdtr-form-section.active {
    display: block;
}

.pdtr-progress-container {
    margin-bottom: 30px;
}

.pdtr-progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.pdtr-progress-indicator {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s;
}

.pdtr-progress-text {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.pdtr-field-error {
    border-color: #e74c3c !important;
}
.pdtr-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pdtr-password-input-wrapper input {
    flex: 1;
    padding-right: 45px !important; /* Make space for the toggle button */
}

/* Password toggle button */
.pdtr-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.pdtr-password-toggle:hover {
    /* color: #0073aa; */
    background-color: #ccc;
    border-radius: 50px;
}

.pdtr-password-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Eye icon styling */
.pdtr-password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: opacity 0.2s ease;
}

/* Ensure proper spacing in form groups */
.pdtr-form-group .pdtr-password-input-wrapper {
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pdtr-password-toggle {
        right: 10px;
        padding: 6px;
    }
    
    .pdtr-password-input-wrapper input {
        padding-right: 40px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pdtr-password-toggle {
        color: #000;
        border: 1px solid #000;
        background: #fff;
    }
    
    .pdtr-password-toggle:hover {
        background: #f0f0f0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pdtr-password-toggle,
    .pdtr-password-toggle svg {
        transition: none;
    }
}