/**
 * HCP Scheduler - Form Styles
 */

/* Container */
.hcp-scheduler {
    background-color: #fff;
    border: 1px solid #019FDB;
    border-radius: 4px;
    font-family: "Outfit", sans-serif;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Header */
.hcp-scheduler__header {
    padding: 20px;
    background-color: #019FDB;
    color: #fff;
    text-align: center;
}

.hcp-scheduler__header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.hcp-scheduler__header p {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 400;
}

.hcp-scheduler__header p:last-child {
    margin-bottom: 0;
}

.hcp-scheduler__header a {
    color: #fff;
    text-decoration: underline;
}

.hcp-scheduler__header a:hover {
    text-decoration: none;
}

/* Content/Form Area */
.hcp-scheduler__content {
    padding: 0;
}

.hcp-scheduler__content form {
    margin: 0;
}

/* Fields Container */
.hcp-scheduler__fields {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.0125);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 575px) {
    .hcp-scheduler__fields {
        grid-template-columns: 1fr;
    }
}

/* Individual Field */
.hcp-scheduler__field {
    position: relative;
}

.hcp-scheduler__field--full {
    grid-column: 1 / -1;
}

.hcp-scheduler__field--address {
    grid-column: 1 / -1;
}

.hcp-scheduler__field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.hcp-scheduler__field label .required {
    color: #F33D3B;
}

.hcp-scheduler__field label .optional {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

.hcp-scheduler__field label small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 3px;
}

.hcp-scheduler__field input[type="text"],
.hcp-scheduler__field input[type="email"],
.hcp-scheduler__field input[type="tel"],
.hcp-scheduler__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hcp-scheduler__field input:focus,
.hcp-scheduler__field textarea:focus {
    outline: none;
    border-color: #019FDB;
    box-shadow: 0 0 0 3px rgba(1, 159, 219, 0.15);
}

/* Validation Error States */
.hcp-scheduler__input--error {
    border-color: #F33D3B !important;
    box-shadow: 0 0 0 3px rgba(243, 61, 59, 0.15) !important;
}

.hcp-scheduler__error {
    display: block;
    color: #F33D3B;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

/* SMS Consent Notice */
p.hcp-scheduler__sms-notice {
    margin: 0 20px 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.hcp-scheduler__field input::placeholder,
.hcp-scheduler__field textarea::placeholder {
    color: #999;
    font-weight: 400;
}

.hcp-scheduler__field textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Field */
.hcp-scheduler__field--upload {
    position: relative;
}

.hcp-scheduler__field--upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: calc(100% - 30px);
    bottom: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.hcp-scheduler__field--upload label {
    position: relative;
    display: block;
    width: 100%;
    padding: 30px 20px;
    background-color: #fff;
    border: 2px dashed #019FDB;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 0;
}

.hcp-scheduler__field--upload label:hover {
    background-color: rgba(1, 159, 219, 0.05);
    border-color: #2F3E57;
}

.hcp-scheduler__field--upload label::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background-color: #019FDB;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* File List */
.hcp-scheduler__file-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.hcp-scheduler__file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 14px;
}

.hcp-scheduler__file-list li:last-child {
    margin-bottom: 0;
}

.hcp-scheduler__file-list li.file-error {
    background-color: #fff5f5;
    border-color: #F33D3B;
    color: #F33D3B;
}

.hcp-scheduler__file-list .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #2F3E57;
}

.hcp-scheduler__file-list .file-size {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    white-space: nowrap;
}

/* Multi-step Form */
.hcp-scheduler__step {
    animation: hcp-fadeIn 0.3s ease;
}

@keyframes hcp-fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Buttons */
.hcp-scheduler__nav {
    padding: 20px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px !important;
    border-radius: 4px !important;
    font-family: inherit;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1 !important;
    text-transform: none !important;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--next,
.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--submit {
    background-color: #019FDB !important;
    color: #fff !important;
    margin-left: auto;
    border: 2px solid #019FDB !important;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--next:hover,
.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--submit:hover {
    background-color: #017fb0 !important;
    border-color: #017fb0 !important;
    color: #fff !important;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--prev {
    background-color: transparent !important;
    color: #019FDB !important;
    border: 2px solid #019FDB !important;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--prev:hover {
    background-color: #019FDB !important;
    color: #fff !important;
}

.hcp-scheduler .hcp-scheduler__nav button.hcp-scheduler__btn--submit:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
}

.hcp-scheduler__btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hcp-scheduler__btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hcp-spin 0.8s linear infinite;
}

/* Legacy Submit Area - keep for backwards compatibility */
.hcp-scheduler__submit {
    padding: 20px;
    border-top: 1px solid #ccc;
    text-align: center;
}

.hcp-scheduler__submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 14px 30px;
    background-color: #2F3E57;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hcp-scheduler__submit button:hover {
    background-color: #0073aa;
}

.hcp-scheduler__submit button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hcp-scheduler__submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hcp-scheduler__submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hcp-spin 0.8s linear infinite;
}

/* Privacy Notice */
.hcp-scheduler__privacy {
    margin: 15px 20px 5px;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.hcp-scheduler__privacy a {
    color: #019FDB;
    text-decoration: none;
}

.hcp-scheduler__privacy a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.hcp-scheduler__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.hcp-scheduler__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top-color: #019FDB;
    border-radius: 50%;
    animation: hcp-spin 0.8s linear infinite;
}

/* Animations */
@keyframes hcp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Google Places Autocomplete Dropdown */
.pac-container {
    z-index: 9999999 !important;
    font-family: "Outfit", sans-serif;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ccc;
    margin-top: 2px;
}

.pac-item {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: rgba(1, 159, 219, 0.1);
}

.pac-item-query {
    font-weight: 600;
    color: #2F3E57;
}

.pac-matched {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 575px) {
    .hcp-scheduler__header {
        padding: 15px;
    }

    .hcp-scheduler__header h2 {
        font-size: 20px;
    }

    .hcp-scheduler__fields {
        padding: 15px;
        gap: 12px;
    }

    .hcp-scheduler__field label {
        font-size: 14px;
    }

    .hcp-scheduler__field input,
    .hcp-scheduler__field textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .hcp-scheduler__field--upload label {
        padding: 20px 15px;
    }

    .hcp-scheduler__field--upload label::before {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .hcp-scheduler__submit {
        padding: 15px;
    }

    .hcp-scheduler__submit button {
        max-width: none;
        font-size: 16px;
        padding: 12px 20px;
    }

    .hcp-scheduler__privacy {
        margin: 10px 15px 15px;
    }
}

/* reCAPTCHA Badge - Hide but keep accessible */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
