@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    font-size: 18px;
    height: auto;
    overflow: visible;
}

#itr-widget-container {
    width: 100%;
    max-width: 800px;
    background: transparent;
    padding: 10px;
    border-radius: 16px;
    box-sizing: border-box;
}

/* Dropdown Styling */
select {
    width: 100%;
    padding: 18px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    border: 2px solid #eaeff4;
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 25px;
    cursor: pointer;
    color: #333;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397c4c1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

select:focus {
    border-color: #97c4c1;
    box-shadow: 0 0 0 4px rgba(151, 196, 193, 0.15);
}

/* Card Layout */
#itr-clinician-card {
    display: none;
    flex-direction: row;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#itr-clinician-card.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Image Area - LOCKED 320x400 */
.itr-headshot-container {
    width: 320px;
    min-width: 320px;
    height: 400px;
    background-color: #f9f9f9;
}

.itr-headshot-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#itr-clinician-card:hover .itr-headshot-container img {
    transform: scale(1.03);
}

/* Info Area */
.itr-info-container {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
}

h3#itr-name {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

#itr-creds {
    color: #555;
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 400;
}

#itr-availability {
    color: #b58d4e;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
    background: #fff9f0;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #b58d4e;
    display: none;
}

/* Buttons */
.itr-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center buttons */
    margin-bottom: 25px;
}

a.itr-btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    line-height: 1;
}

a.itr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.itr-btn:active {
    transform: translateY(0);
}

.itr-btn-call {
    background-color: #619e9e;
    color: white;
}

.itr-btn-call:hover {
    background-color: #97c4c1;
}

.itr-btn-text {
    background-color: #619e9e;
    color: white;
}

.itr-btn-text:hover {
    background-color: #97c4c1;
}

.itr-btn-email {
    background-color: #ffffff;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.itr-btn-email:hover {
    background-color: #fafafa;
    border-color: #619e9e;
}

/* Card Disclaimer */
.itr-card-disclaimer {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

.itr-card-disclaimer a {
    color: #619e9e;
    text-decoration: underline;
    font-weight: 700;
}

.itr-card-disclaimer a:hover {
    color: #97c4c1;
}

/* Form Styling Refinements */
.itr-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

.itr-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.itr-form-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.itr-form-section {
    margin-bottom: 35px;
}

.itr-section-header {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #619e9e;
    display: inline-block;
    letter-spacing: 0.5px;
}

.itr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.itr-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.itr-input-group label {
    font-size: 18px;
    font-weight: 700;
    color: #444;
}

.itr-input-group input,
.itr-input-group select,
.itr-input-group textarea {
    padding: 14px 18px;
    border: 2px solid #eaeff4;
    border-radius: 10px;
    font-family: inherit;
    font-size: 18px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fcfdfe;
}

.itr-input-group input:focus,
.itr-input-group select:focus,
.itr-input-group textarea:focus {
    border-color: #619e9e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(97, 158, 158, 0.15);
}

.itr-checkbox-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.itr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 18px;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
    padding: 2px 0;
}

.itr-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #619e9e;
}

.itr-consent-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itr-disclaimer-text {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin-bottom: 15px;
}

.itr-btn-submit {
    width: 100%;
    background-color: #619e9e;
    color: white;
    margin-top: 20px;
    padding: 18px !important;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.itr-btn-submit:hover {
    background-color: #97c4c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.itr-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.itr-feedback {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.itr-feedback.is-success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.itr-feedback.is-error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Form Mobile Adjustments */
@media (max-width: 600px) {
    .itr-form-grid {
        grid-template-columns: 1fr;
    }
}