/**
 * Health Check Registration Form Styles (S5 VGP)
 * Theme: Medical Teal / Ocean Blue / Modern Community
 */

.hk-form-wrap {
    background: #ffffff;
    border: 1.5px solid #ccfbf1;
    border-radius: 18px;
    padding: 28px;
    margin: 35px 0 25px;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08);
    position: relative;
    overflow: hidden;
}

.hk-form-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d9488 0%, #0284c7 50%, #06b6d4 100%);
}

.hk-form-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e2e8f0;
}

.hk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hk-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}

.hk-form-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.6;
}

.hk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .hk-grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hk-form-wrap {
        padding: 20px 16px;
    }
}

.hk-group {
    margin-bottom: 18px;
}

.hk-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.hk-label .req {
    color: #ef4444;
    font-weight: 800;
}

.hk-label .opt {
    color: #94a3b8;
    font-weight: 500;
    font-size: 12px;
}

.hk-input, .hk-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.hk-input:focus, .hk-select:focus {
    background: #ffffff;
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.hk-input.has-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

.hk-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* Time slot selection cards */
.hk-slots-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.hk-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 500px) {
    .hk-slots-grid {
        grid-template-columns: 1fr;
    }
}

.hk-slot-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hk-slot-card:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.hk-slot-card.active {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.hk-slot-radio {
    margin-top: 3px;
    accent-color: #0d9488;
    cursor: pointer;
}

.hk-slot-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.hk-slot-time {
    font-size: 12.5px;
    color: #0d9488;
    font-weight: 600;
    margin-top: 2px;
}

.hk-slot-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Submit section */
.hk-submit-wrap {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.hk-btn-submit {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
}

.hk-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.hk-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.hk-direct-link {
    margin-top: 14px;
    font-size: 13.5px;
    color: #64748b;
}

.hk-direct-link a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
}

/* Success Card */
.hk-success-card {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 16px;
    animation: hkFadeIn 0.4s ease;
}

@keyframes hkFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.hk-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.hk-success-title {
    font-size: 22px;
    font-weight: 800;
    color: #15803d;
    margin: 0 0 10px;
}

.hk-success-desc {
    font-size: 15px;
    color: #166534;
    max-width: 580px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

.hk-success-details {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    max-width: 480px;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 13.5px;
    color: #1e293b;
}

.hk-success-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.hk-success-row:last-child {
    border-bottom: none;
}

.hk-success-row span:first-child {
    color: #64748b;
}

.hk-success-row span:last-child {
    font-weight: 700;
}

/* Infographic callout box */
.hk-callout {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border: 1.5px solid #99f6e4;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 25px 0;
}

.hk-callout-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f766e;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hk-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hk-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hk-step-num {
    background: #0d9488;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.hk-step-content {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
}
