/**
 * Smart Scheduling Form Styles
 *
 * @package    Helpmate
 * @subpackage Helpmate/public/css
 * @since      1.3.0
 */

.helpmate-scheduling-form-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.helpmate-scheduling-form-header {
    margin-bottom: 20px;
}

.helpmate-scheduling-form-header h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.helpmate-scheduling-form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.helpmate-scheduling-messages {
    display: none;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.helpmate-scheduling-messages.show {
    display: block;
}

.helpmate-scheduling-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.helpmate-scheduling-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.helpmate-scheduling-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpmate-scheduling-field.hidden {
    display: none;
}

.helpmate-scheduling-field label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.helpmate-scheduling-field .required {
    color: #dc3545;
    margin-left: 4px;
}

.helpmate-scheduling-field input[type="text"],
.helpmate-scheduling-field input[type="email"],
.helpmate-scheduling-field input[type="tel"],
.helpmate-scheduling-field input[type="date"],
.helpmate-scheduling-field select,
.helpmate-scheduling-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.helpmate-scheduling-field input[type="text"]:focus,
.helpmate-scheduling-field input[type="email"]:focus,
.helpmate-scheduling-field input[type="tel"]:focus,
.helpmate-scheduling-field input[type="date"]:focus,
.helpmate-scheduling-field select:focus,
.helpmate-scheduling-field textarea:focus {
    outline: none;
    border-color: #455CFE;
    box-shadow: 0 0 0 3px rgba(69, 92, 254, 0.1);
}

.helpmate-scheduling-field input.error,
.helpmate-scheduling-field select.error,
.helpmate-scheduling-field textarea.error {
    border-color: #dc3545;
}

.helpmate-scheduling-field .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.helpmate-scheduling-countdown {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.helpmate-scheduling-countdown.helpmate-scheduling-countdown-urgent {
    color: #b45309;
    font-weight: 500;
}

.helpmate-scheduling-form-footer {
    margin-top: 10px;
}

.helpmate-scheduling-submit {
    width: 100%;
    padding: 12px 24px;
    background: #455CFE;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.helpmate-scheduling-submit:hover {
    background: #3748d4;
}

.helpmate-scheduling-submit:active {
    background: #2d3bb8;
}

.helpmate-scheduling-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.helpmate-scheduling-submit.loading {
    position: relative;
    color: transparent;
}

.helpmate-scheduling-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .helpmate-scheduling-form-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .helpmate-scheduling-form-header h3 {
        font-size: 20px;
    }
}

