/**
 * Doctor Appointment Page Styles
 */

.appointment-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
}

.appointment-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    color: #0192BC;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* Doctor Info Card */
.doctor-info-card {
    background: linear-gradient(135deg, #0192BC 0%, #44F3C9 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 40px;
    display: none;
    box-shadow: 0 10px 30px rgba(1, 146, 188, 0.3);
    animation: fadeInDown 0.5s ease-out;
}

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

.doctor-info-card.show {
    display: block;
}

.doctor-info-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.doctor-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.doctor-header-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.doctor-header-text p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.consultation-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

/* Service Selector */
.service-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card.active {
    border-color: #0192BC;
    box-shadow: 0 10px 30px rgba(1, 146, 188, 0.2);
}

.service-card.active::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #0192BC;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0192BC 0%, #44F3C9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.service-card h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-price {
    font-size: 28px;
    font-weight: 700;
    color: #0192BC;
}

/* Appointment Form */
.appointment-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: none;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.appointment-form-wrapper.show {
    display: block;
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header h2 i {
    margin-right: 12px;
    color: #0192BC;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.required {
    color: #e53e3e;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0192BC;
    box-shadow: 0 0 0 3px rgba(1, 146, 188, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.radio-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-item a {
    color: #0192BC;
    text-decoration: underline;
}

/* DateTime Selector */
.datetime-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.datetime-selector select {
    padding: 12px 10px;
}

.time-note {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.time-note i {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* File Upload */
.file-upload-container {
    margin-top: 10px;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-label:hover {
    border-color: #0192BC;
    background: #f0f9fc;
}

.file-upload-label i {
    font-size: 40px;
    color: #0192BC;
    margin-bottom: 15px;
}

.file-upload-label > span:first-of-type {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 12px;
    color: #999;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.file-info i {
    font-size: 24px;
    color: #0192BC;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #999;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.file-remove:hover {
    background: #c82333;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #0192BC 0%, #44F3C9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(1, 146, 188, 0.3);
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 146, 188, 0.4);
}

.submit-btn i {
    margin-right: 10px;
}

/* Success Message */
.success-message {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 25px;
}

.success-message h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.success-message strong {
    color: #0192BC;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 35px;
    background: #0192BC;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #017a9d;
    transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    background: #0192BC;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(1, 146, 188, 0.3);
}

.btn-submit:hover {
    background: #017a9d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 146, 188, 0.4);
}

.btn-submit i {
    margin-right: 10px;
}

.form-note {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.form-note i {
    color: #0192BC;
    margin-right: 5px;
}

/* Success/Error Messages */
.appointment-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .appointment-section {
        padding: 40px 15px;
    }

    .appointment-form-wrapper {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .doctor-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .btn-submit,
    .submit-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .service-selector {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .datetime-selector {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        padding: 30px 20px;
    }

    .success-message {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .doctor-avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .doctor-header-text h3 {
        font-size: 20px;
    }

    .datetime-selector {
        grid-template-columns: 1fr;
    }
}


/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    color: #0192BC;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* Doctor Info Card */
.doctor-info-card {
    background: linear-gradient(135deg, #0192BC 0%, #44F3C9 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 40px;
    display: none;
    box-shadow: 0 10px 30px rgba(1, 146, 188, 0.3);
}

.doctor-info-card.show {
    display: block;
}

.doctor-info-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.doctor-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.doctor-header-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.doctor-header-text p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.consultation-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

/* Appointment Form */
.appointment-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header h2 i {
    margin-right: 12px;
    color: #0192BC;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.required {
    color: #e53e3e;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0192BC;
    box-shadow: 0 0 0 3px rgba(1, 146, 188, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.radio-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-item a {
    color: #0192BC;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 600;
    background: #0192BC;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(1, 146, 188, 0.3);
}

.btn-submit:hover {
    background: #017a9d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 146, 188, 0.4);
}

.btn-submit i {
    margin-right: 10px;
}

.form-note {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.form-note i {
    color: #0192BC;
    margin-right: 5px;
}

/* Success/Error Messages */
.appointment-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .appointment-section {
        padding: 40px 15px;
    }

    .appointment-form-wrapper {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .doctor-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .doctor-avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .doctor-header-text h3 {
        font-size: 20px;
    }
}
