﻿.dependent_title {
    color: var(--blue);
    font-weight: bold;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Section headers */
.form-section-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
    margin: 30px 0 20px 0;
}

.form-section-header:first-child {
    margin-top: 0;
}

.section-subtitle {
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Form groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label.field-label {
    display: block;
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 8px;
    font-weight: 500;
}

span.required,
.required {
    color: #d93025 !important;
}

.form-group.view input,
.form-group.view select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 4px;
    font-size: 15px;
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group.view input:focus,
.form-group.view select:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

/* Placeholder styling */
.form-group.view input::placeholder {
    color: #999;
    font-size: 15px;
}

.form-group.view select option:first-child {
    color: #999;
}

.form-group.view select:invalid {
    color: #999;
}

.form-group.view select:valid {
    color: #333;
}

/* Date input styling */
.form-group.view input[type="date"] {
    color: #333;
}

.form-group.view input[type="date"]:invalid {
    color: #999;
}

/* Contact details group */
.contact-details-group .form-group {
    margin-bottom: 16px;
}

/* Checkbox groups */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
    transition: outline 0.2s ease;
}

/* Areas of focus section */
.areas-focus-section {
    margin-bottom: 30px;
}

.areas-focus-label {
    display: block;
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 12px;
    font-weight: 500;
}

.other-focus-input,
.allergies-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 4px;
    font-size: 14px;
    background: transparent;
    margin-top: 8px;
}

/* Consent section */
.consent-section {
    text-align: justify;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.consent-note {
    font-size: 13px;
}

/* Button styling */
.form-group--submit {
    text-align: center;
    margin-top: 30px;
}

.form-group--submit button {
    position: relative;
    padding: 1rem 3.5rem 1rem 1.5rem;
    background: var(--rose-gold);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-group--submit button::after {
    content: "";
    position: absolute;
    margin-left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23fff' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 5l7 7-7 7'/></svg>") no-repeat center;
    transition: transform 0.2s ease;
}

.form-group--submit button:hover {
    background: #1f2d5e;
    transform: translateY(-1px);
}

.form-group--submit button:hover::after {
    transform: translate(3px, -50%);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(255,255,255,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

body.overlay--active .overlay {
    display: flex;
}

/* Error validation states */
.form-group.view input.is-invalid,
.form-group.view select.is-invalid {
    border-bottom-color: #d93025;
    background-color: #fff5f5;
}

.checkbox-group input[type="checkbox"].is-invalid {
    outline: 2px solid #d93025;
}

.form-error {
    display: none;
    color: #d93025;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.recaptcha-disclaimer {
    font-size: 12px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/* Select 2 */
.form-group.view .select2-selection--single {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding: 12px 4px;
    height: auto;
    font-size: 15px;
    width: 100px;
}

.form-group.view .select2-selection__rendered {
    line-height: normal;
}

.form-group.view .select2-selection__rendered:not(:empty) {
    color: #333;
}

.form-group.view .select2-selection__arrow {
    height: 100%;
}

.select2-dropdown {
    position: absolute !important;
    width: 100px !important;
}

/* Character Counter Styling */
.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 4px;
    display: block;
}

.char-counter.at-limit {
    color: #d93025;
    font-weight: 500;
}
