/* Check-in layout — scoped to .checkin-page so dashboard styles are not affected */

.checkin-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.checkin-page .checkin-header {
    text-align: center;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkin-page .brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #8b7355;
    letter-spacing: 3px;
    margin: 0 0 0.5rem 0;
}

.checkin-page .brand-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: #8b7355;
    letter-spacing: 2px;
    margin: 0 0 1.5rem 0;
}

.checkin-page .checkin-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.checkin-page .checkin-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.checkin-page .checkin-progress-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
}

.checkin-page .checkin-progress-wrapper .wizard-progress {
    margin-bottom: 0;
}

.checkin-page .checkin-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.checkin-page .checkin-step {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.checkin-page .checkin-step-large {
    max-width: 800px;
}

.checkin-page .checkin-step h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.checkin-page .section-title {
    font-size: 1.2rem;
    color: #8b7355;
    margin: 2rem 0 1.2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.checkin-page .patient-data-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkin-page .patient-data-section h3 {
    font-size: 1.2rem;
    color: #8b7355;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.checkin-page .masterdata-row {
    display: flex;
    gap: 1rem;
}

.checkin-page .masterdata-row .form-group {
    min-width: 0;
}

.checkin-page .flex-1 {
    flex: 1;
}

.checkin-page .mt-3 {
    margin-top: 1rem;
}

.checkin-page .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkin-page .form-group {
    margin-bottom: 1.5rem;
}

.checkin-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.checkin-page .required {
    color: #e63757;
}

.checkin-page .checkin-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.checkin-page .checkin-input:focus {
    border-color: #8b7355;
    outline: none;
}

.checkin-page .field-error {
    color: #c53030;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.checkin-page .consent-email-option {
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ebe4 100%);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #d4c9ba;
}

.checkin-page .consent-email-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    position: relative;
    padding-left: 2rem;
}

.checkin-page .consent-email-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkin-page .consent-email-checkbox .checkmark-small {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #8b7355;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkin-page .consent-email-checkbox:hover .checkmark-small {
    border-color: #6b5a45;
}

.checkin-page .consent-email-checkbox input:checked ~ .checkmark-small {
    background-color: #8b7355;
    border-color: #8b7355;
}

.checkin-page .consent-email-checkbox .checkmark-small:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkin-page .consent-email-checkbox input:checked ~ .checkmark-small:after {
    display: block;
}

.checkin-page .checkin-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.checkin-page .checkin-actions.between {
    justify-content: space-between;
}

.checkin-page .btn-checkin-primary {
    background-color: #8b7355;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.checkin-page .btn-checkin-primary:hover:not(:disabled) {
    background-color: #6b5a45;
    color: white;
}

.checkin-page .btn-checkin-primary:disabled {
    background-color: #a89070;
    cursor: not-allowed;
}

.checkin-page .btn-back {
    background: transparent;
    color: #666;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkin-page .btn-back:hover {
    border-color: #999;
    color: #333;
}

.checkin-page .checkin-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.checkin-page .appointment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checkin-page .appointment-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.checkin-page .appointment-card:hover {
    border-color: #8b7355;
    background: #f8fafc;
}

.checkin-page .appointment-card.selected {
    border-color: #8b7355;
    background: #f5f3f0;
}

.checkin-page .appointment-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b7355;
    min-width: 100px;
}

.checkin-page .appointment-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkin-page .appointment-details strong {
    color: #333;
}

.checkin-page .appointment-details span {
    color: #666;
    font-size: 0.9rem;
}

.checkin-page .checkin-success {
    text-align: center;
    padding: 2rem 0;
}

.checkin-page .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.checkin-page .checkin-success h2 {
    margin-bottom: 0.5rem;
}

.checkin-page .checkin-success p {
    color: #666;
    font-size: 1.1rem;
}

.checkin-page .appointment-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.checkin-page .appointment-info {
    font-size: 1.1rem;
    color: #333;
    margin-top: 0.5rem;
}

.checkin-page .checkin-footer {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.checkin-page .checkin-footer p {
    margin: 0;
    color: #666;
}

.checkin-page .checkin-phone {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem !important;
    color: #333 !important;
}

.checkin-page .fade-in {
    animation: checkinFadeIn 0.3s ease-out;
}

@keyframes checkinFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .checkin-page .checkin-content {
        padding: 0.5rem;
    }

    .checkin-page .checkin-step {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .checkin-page .masterdata-row {
        flex-direction: column;
        gap: 0;
    }

    .checkin-page .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .checkin-page .checkin-actions {
        flex-direction: column;
    }

    .checkin-page .appointment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .checkin-page .appointment-time {
        min-width: auto;
    }
}
