/* =========================================================
   TVICO Single Meeting Change Request Form
   Matched to the multiple-meeting form styling
   ========================================================= */

/* Main form container */
.tvico-request-form {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
}

/* Headings */
.tvico-request-form h2,
.tvico-request-form h3 {
    color: #000;
    font-style: normal;
    font-weight: 700;
}


/* =========================================================
   Progress Indicator
   ========================================================= */

.tvico-progress {
    --tvico-progress-percent: 0%;

    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
}

/* Remaining progress line */
.tvico-progress::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d7e0e6;
    z-index: 0;
}

/* Completed progress line */
.tvico-progress::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: var(--tvico-progress-percent);
    height: 2px;
    background: #2D6F97;
    z-index: 1;
    transition: width 0.25s ease;
}

.tvico-progress span {
    position: relative;
    z-index: 2;

    width: 36px;
    height: 36px;
    padding: 0;

    border-radius: 50%;
    background: #d7e0e6;
    color: #2D6F97;

    line-height: 36px;
    text-align: center;
    font-weight: 400;
}

.tvico-progress span.active,
.tvico-progress span.done {
    background: #2D6F97;
    color: #fff;
}

.tvico-progress small {
    position: absolute;
    top: -34px;
    left: 50%;
    display: block;

    transform: translateX(-50%);

    color: #2D6F97;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}
/* =========================================================
   Form Steps
   ========================================================= */

.tvico-step {
    display: none;
}

.tvico-step.active {
    display: block;
}


/* =========================================================
   Labels and Field Groups
   ========================================================= */

.tvico-request-form label:not(.check) {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
}

.tvico-request-form label label,
.tvico-request-form fieldset label {
    margin: 10px 0;
    font-weight: 600;
}

.tvico-request-form fieldset {
    margin: 22px 0;
    padding: 0;
    border: 0;
}

.tvico-request-form legend {
    font-weight: 700;
}

.tvico-field-label {
    margin: 0 0 10px;
    font-weight: 700;
}


/* =========================================================
   Inputs, Selects, and Textareas
   ========================================================= */

.tvico-request-form input[type="text"],
.tvico-request-form input[type="email"],
.tvico-request-form input[type="tel"],
.tvico-request-form input[type="url"],
.tvico-request-form input[type="time"],
.tvico-request-form input[type="date"],
.tvico-request-form input:not([type]),
.tvico-request-form select,
.tvico-request-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;

    border: 1px solid #7fa8c0;
    border-radius: 0;
    background: #fff;

    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.tvico-request-form input:focus,
.tvico-request-form select:focus,
.tvico-request-form textarea:focus {
    outline: 2px solid rgba(45, 111, 151, 0.25);
    border-color: #2D6F97;
}


/* =========================================================
   Grid Layout
   ========================================================= */

.tvico-grid {
    display: grid;
    gap: 26px;
}

.tvico-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   Warnings and Help Text
   ========================================================= */

.tvico-warning {
    color: #b42318;
    font-weight: 700;
}

.help {
    color: #2D6F97;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
}


/* =========================================================
   Navigation Buttons
   ========================================================= */

.tvico-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

.tvico-buttons button {
    padding: 12px 28px;

    border: 0;
    border-radius: 4px;
    background: #2D6F97;
    color: #fff;

    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.tvico-buttons button:hover {
    background: #245b7d;
}

.tvico-buttons button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tvico-next,
.tvico-submit {
    margin-left: auto;
}


/* =========================================================
   Summary and Review
   ========================================================= */

.tvico-meeting-summary {
    margin: 20px 0;
    padding: 16px;

    border-left: 4px solid #2D6F97;
    background: #eef6fb;
}

.tvico-meeting-summary h3 {
    margin-top: 0;
}

.tvico-meeting-summary p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Editable Sections
   ========================================================= */

.tvico-edit-section {
    margin-top: 28px;
    padding-top: 4px;
}

.tvico-edit-section > h3 {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 3px solid #0f766e;
}


/* =========================================================
   Meeting Types and Languages
   ========================================================= */

.tvico-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    margin-top: 8px;
}

.tvico-types label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 0 !important;
    font-weight: 500 !important;
}

.tvico-field-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}


/* =========================================================
   Meeting Availability
   ========================================================= */

.tvico-status-options {
    margin: 0;
}

.tvico-status-options legend {
    margin-bottom: 10px;
}

.tvico-status-options label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 !important;
    font-weight: 600;
    cursor: pointer;
}


/* =========================================================
   Form Messages and Validation
   ========================================================= */

.tvico-form-message {
    margin-bottom: 18px;
    padding: 12px;

    border-left: 4px solid #b42318;
    background: #fff1f0;
    color: #7a271a;
}

.tvico-form-message strong {
    display: block;
    margin-bottom: 6px;
}

.tvico-form-message ul {
    margin: 0;
    padding-left: 22px;
}

.tvico-request-form .tvico-invalid {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 1px #b42318;
}

.tvico-request-form .tvico-invalid-wrapper {
    color: #7a271a;
}

.tvico-request-form .tvico-invalid-group {
    padding: 8px;
    border: 2px solid #b42318;
}


/* =========================================================
   Review
   ========================================================= */

.tvico-review {
    overflow: hidden;
    margin: 22px 0 20px;

    border: 1px solid #bcc8d2;
    border-radius: 4px;
    background: #fff;
}

.tvico-review h3 {
    margin: 0;
    padding: 14px 18px;

    border-bottom: 1px solid #bcc8d2;
    background: #eef4f8;

    color: #222;
    font-size: 19px;
}

.tvico-review table {
    width: 100%;
    border-collapse: collapse;
}

.tvico-review th,
.tvico-review td {
    padding: 10px 18px;

    border-bottom: 1px solid #e2e7eb;

    text-align: left;
    vertical-align: top;
}

.tvico-review tr:last-child th,
.tvico-review tr:last-child td {
    border-bottom: 0;
}

.tvico-review th {
    width: 35%;
    font-weight: 700;
}

.tvico-review td {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tvico-review .remove {
    color: #a00;
    font-style: italic;
}


/* =========================================================
   Checkboxes and Radio Buttons
   ========================================================= */

.tvico-request-form input[type="checkbox"],
.tvico-request-form input[type="radio"] {
    width: auto;
    transform: scale(1.5);
    transform-origin: left center;
    margin: 5px 10px 0 3px;

    accent-color: #2D6F97;
    cursor: pointer;
    flex: 0 0 auto;
}

.check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 20px !important;

    font-weight: 600;
    cursor: pointer;
}


/* =========================================================
   Mobile Layout
   ========================================================= */

@media (max-width: 650px) {
    .tvico-grid.two {
        grid-template-columns: 1fr;
    }

    .tvico-progress small {
        display: none;
    }

    .tvico-types {
        grid-template-columns: 1fr;
    }

    .tvico-review th,
    .tvico-review td {
        display: block;
        width: 100%;
    }

    .tvico-review th {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .tvico-review td {
        padding-top: 3px;
    }

    .tvico-buttons {
        gap: 12px;
    }

    .tvico-buttons button {
        padding: 12px 20px;
    }
}
/* Keep the two-row address block visually compact. */
.tvico-address-grid {
    row-gap: 8px;
}

.tvico-address-grid > label {
    margin-top: 8px !important;
}


/* Always honor the HTML hidden attribute inside the form. */
.tvico-request-form [hidden] {
    display: none !important;
}


/* Zoom entry method selector. */
.tvico-zoom-entry {
    margin-top: 24px !important;
    padding-top: 4px !important;
}

.tvico-zoom-entry-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 10px 0 4px;
}

.tvico-zoom-entry-options label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 0 !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.tvico-optional {
    font-weight: 400;
}

@media (max-width: 650px) {
    .tvico-zoom-entry-options {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Live preview for Meeting ID entry. */
.tvico-zoom-preview {
    margin: 16px 0 6px;
    padding: 12px 14px;
    border-left: 4px solid #2D6F97;
    background: #eef6fb;
}

.tvico-zoom-preview strong {
    display: block;
    margin-bottom: 6px;
}

.tvico-zoom-preview [data-zoom-preview-content] {
    white-space: pre-line;
}

/* Zoom invitation validation feedback. */
.tvico-zoom-link-status {
    margin: 8px 0 2px;
    padding: 10px 12px;
    border-left: 4px solid #2D6F97;
    background: #eef6fb;
    font-weight: 600;
    line-height: 1.45;
}

.tvico-zoom-link-status.is-valid {
    border-left-color: #2f7d32;
    background: #eef8ef;
    color: #245f27;
}

.tvico-zoom-link-status.is-valid::before {
    content: "✓ ";
}

.tvico-zoom-link-status.is-error {
    border-left-color: #b42318;
    background: #fff1f0;
    color: #7a271a;
}

.tvico-zoom-link-status.is-error::before {
    content: "⚠ ";
}

.tvico-zoom-preview-note {
    margin: 0 0 8px;
    font-weight: 500;
}
