/* TVICO New Meeting Request Form */
.tvico-new-meeting-form {
    --tvico-new-progress-percent: 0%;
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
}

.tvico-new-meeting-form h2,
.tvico-new-meeting-form h3 {
    color: #000;
    font-style: normal;
    font-weight: 700;
}

.tvico-new-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
}

.tvico-new-progress::before,
.tvico-new-progress::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    height: 2px;
}

.tvico-new-progress::before {
    right: 0;
    background: #d7e0e6;
    z-index: 0;
}

.tvico-new-progress::after {
    width: var(--tvico-new-progress-percent);
    background: #2D6F97;
    z-index: 1;
    transition: width .25s ease;
}

.tvico-new-progress > span {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d7e0e6;
    color: #2D6F97;
    line-height: 36px;
    text-align: center;
}

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

.tvico-new-progress small {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: #2D6F97;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.tvico-new-meeting-form [hidden] {
    display: none !important;
}

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

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

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

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

.tvico-new-meeting-form input[type="text"],
.tvico-new-meeting-form input[type="email"],
.tvico-new-meeting-form input[type="tel"],
.tvico-new-meeting-form input[type="url"],
.tvico-new-meeting-form input[type="time"],
.tvico-new-meeting-form input:not([type]),
.tvico-new-meeting-form select,
.tvico-new-meeting-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-new-meeting-form input:focus,
.tvico-new-meeting-form select:focus,
.tvico-new-meeting-form textarea:focus {
    outline: 2px solid rgba(45, 111, 151, .25);
    border-color: #2D6F97;
}

.tvico-new-grid {
    display: grid;
    gap: 18px;
}

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

.tvico-new-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0;
    font-weight: 600;
}

.tvico-new-check input { margin-top: 4px; }

.tvico-new-day-options,
.tvico-new-type-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 10px;
}

.tvico-new-day-options label,
.tvico-new-type-options label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #d7e0e6;
    background: #fff;
    font-weight: 600;
}

.tvico-new-day-options input,
.tvico-new-type-options input {
    flex: 0 0 auto;
}

.tvico-new-invalid-group {
    padding: 12px;
    border: 2px solid #b42318 !important;
}

.tvico-new-zoom-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: #eef5f8;
    border-left: 4px solid #2D6F97;
    overflow-wrap: anywhere;
}

.tvico-new-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #d7e0e6;
}

.tvico-new-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.tvico-new-button {
    appearance: none;
    border: 0;
    border-radius: 5px;
    background: #2D6F97;
    color: #fff;
    padding: 11px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.tvico-new-button:hover,
.tvico-new-button:focus { background: #245b7d; }
.tvico-new-button.secondary { background: #2D6F97; }
.tvico-new-button:disabled { opacity: .5; cursor: not-allowed; }

.tvico-new-message {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    background: #fff4f2;
    color: #7a271a;
    font-weight: 600;
}

.tvico-new-message.tvico-new-message-success {
    border-left-color: #2e7d32;
    background: #f0f8f1;
    color: #245c29;
}

.tvico-new-review dl { margin: 0; }
.tvico-new-review-row {
    display: grid;
    grid-template-columns: minmax(180px, 30%) 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e3e8ec;
}
.tvico-new-review dt { font-weight: 700; }
.tvico-new-review dd { margin: 0; white-space: pre-wrap; }

.tvico-new-phase-note {
    margin-top: 24px;
    padding: 12px 14px;
    background: #eef5f8;
    border-left: 4px solid #2D6F97;
}

.tvico-new-meeting-form .help {
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 700px) {
    .tvico-new-grid.two,
    .tvico-new-day-options,
    .tvico-new-type-options,
    .tvico-new-review-row {
        grid-template-columns: 1fr;
    }

    .tvico-new-progress small { font-size: 12px; }
}

/* Validation matches the working meeting-update forms. */
.tvico-new-message strong {
    display: block;
    margin-bottom: 6px;
}

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

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

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

.tvico-new-meeting-form .tvico-invalid-group {
    padding: 8px;
    border: 2px solid #b42318 !important;
}

.tvico-new-meeting-form input[readonly] {
    background: #f5f7f8;
    color: #444;
}

.tvico-new-meeting-form select:disabled {
    background: #f5f7f8;
    color: #444;
    opacity: 1;
}
