/* Patient Appointment Form Styles */

.paf-form-wrapper {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paf-appointment-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.paf-form-group {
    margin-bottom: 15px;
}

.paf-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.paf-form-group .required {
    color: #e74c3c;
    font-weight: bold;
}

.paf-form-group input[type="text"],
.paf-form-group input[type="email"],
.paf-form-group input[type="tel"],
.paf-form-group input[type="date"],
.paf-form-group input[type="time"],
.paf-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.paf-form-group input[type="text"]:focus,
.paf-form-group input[type="email"]:focus,
.paf-form-group input[type="tel"]:focus,
.paf-form-group input[type="date"]:focus,
.paf-form-group input[type="time"]:focus,
.paf-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.paf-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.paf-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.paf-submit-btn:hover {
    background-color: #2980b9;
}

.paf-submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#paf-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

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

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

/* Sticky Footer Button */
.paf-sticky-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.paf-sticky-button:hover {
    background-color: #229954;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.paf-sticky-button:active {
    transform: translateY(0);
}

.paf-sticky-button::before {
    content: '📅';
    font-size: 16px;
}

/* Hide sticky button on appointment page */
body.paf-appointment-page .paf-sticky-button {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .paf-form-wrapper {
        max-width: 100%;
        padding: 15px;
        margin: 10px;
    }

    .paf-appointment-form h2 {
        font-size: 20px;
    }

    .paf-sticky-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .paf-sticky-button::before {
        font-size: 14px;
    }
}
