@charset "utf-8";

/* TitleLoanDocs Multi-Step Form
   ================================================== */

/* Container */
#tl-ms-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.tl-ms-header {
    border-radius: 10px 10px 0 0;
}

#tl-ms-wrapper *,
#tl-ms-wrapper *::before,
#tl-ms-wrapper *::after {
    box-sizing: border-box;
}

/* Header Banner */
.tl-ms-header {
    background: #0E101F;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Step Indicator Dots */
.tl-ms-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.tl-step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    background: #e0e0e0;
    color: #999;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.tl-step-dot.tl-dot-active {
    background: #0E101F;
    color: #fff;
}

.tl-step-line {
    width: 28px;
    height: 2px;
    background: #e0e0e0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tl-step-line.tl-line-active {
    background: #0E101F;
}

/* Form Padding */
#tl-ms-form {
    padding: 16px;
    margin: 0;
}

/* Step Visibility */
.tl-step.hidden {
    display: none !important;
}

/* Step Title & Description */
.tl-step-title {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    padding-bottom: 4px;
}

.tl-step-desc {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 0 0 12px 0;
}

/* Field Container */
.tl-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tl-field {
    position: relative;
}

/* Inputs & Selects */
#tl-ms-wrapper .tl-input,
#tl-ms-wrapper input[type="text"],
#tl-ms-wrapper input[type="tel"],
#tl-ms-wrapper input[type="email"],
#tl-ms-wrapper select {
    width: 100% !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
    font-family: inherit;
    line-height: 1.3 !important;
    background: #fff !important;
    color: #333 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

#tl-ms-wrapper .tl-input:focus,
#tl-ms-wrapper input[type="text"]:focus,
#tl-ms-wrapper input[type="tel"]:focus,
#tl-ms-wrapper input[type="email"]:focus,
#tl-ms-wrapper select:focus {
    outline: none;
    border-color: #0094B4 !important;
    box-shadow: 0 0 0 2px rgba(0, 148, 180, 0.15) !important;
}

#tl-ms-wrapper .tl-input::placeholder,
#tl-ms-wrapper input::placeholder {
    color: #999;
    font-size: 13px;
}

/* Select styling */
.tl-select {
    color: #999;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.tl-select.tl-select-filled {
    color: #333;
}

.tl-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Error States */
.tl-input.tl-error {
    border-color: #dc3545;
}

.tl-input.tl-error:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.tl-error-msg {
    display: none;
    color: #dc3545;
    font-size: 11px;
    margin-top: 2px;
}

.tl-error-msg:not(.hidden) {
    display: block;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Navigation Buttons */
.tl-nav {
    margin-top: 14px;
}

.tl-nav-split {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tl-next-btn,
.tl-submit-btn {
    display: block;
    width: 100%;
    min-height: 48px;
    background: #0094B4;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    text-align: center;
}

.tl-next-btn:hover,
.tl-submit-btn:hover {
    background: #007a96;
}

.tl-next-btn:active,
.tl-submit-btn:active {
    background: #006880;
}

.tl-nav-split .tl-next-btn,
.tl-nav-split .tl-submit-btn {
    flex: 1;
}

.tl-back-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 10px;
    font-family: inherit;
    flex-shrink: 0;
    transition: color 0.2s;
}

.tl-back-btn:hover {
    color: #555;
}

/* Disabled submit button */
.tl-btn-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Status Messages */
.tl-status {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    margin-top: 8px;
    border-radius: 4px;
}

.tl-status.hidden {
    display: none !important;
}

.tl-status-error {
    color: #dc3545;
    background: #fdf0f0;
}

/* Legal Text */
.tl-legal {
    font-size: 10px;
    color: #999;
    line-height: 1.5;
    margin-top: 12px;
}

.tl-legal a {
    color: #777;
    text-decoration: underline;
}

.tl-legal a:hover {
    color: #444;
}

/* Layout override: 6-col sidebar (340px) + 10-col content (600px) = 940px */
.sidebar-included .gdl-page-item {
    width: 600px;
}
.container .sidebar-included .gdl-page-item .sixteen.columns {
    width: 580px;
}
.container .sidebar-included .gdl-page-item .sixteen.columns.wrapper {
    width: 600px;
}
.container .sidebar-included .gdl-page-item .twelve.columns {
    width: 435px;
}
.container .sidebar-included .gdl-page-item .eight.columns {
    width: 290px;
}
.container .sidebar-included .gdl-page-item .four.columns {
    width: 135px;
}
.container .sidebar-included .gdl-page-item .one-third.column {
    width: 186px;
}
.container .sidebar-included .gdl-page-item .two-thirds.column {
    width: 393px;
}
