/* ========================================================
   THE TRANSITION ROOM – Application Form Styles
   Brand: Primary #3F4A59 | Accent #C1A98D
   ======================================================== */

:root {
    --ttr-primary: #3F4A59;
    --ttr-accent: #C1A98D;
    --ttr-accent-hover: #b09578;
    --ttr-bg: #f7f5f2;
    --ttr-white: #ffffff;
    --ttr-text: #444444;
    --ttr-light-text: #777777;
    --ttr-border: #e0dcd7;
    --ttr-error: #c0392b;
    --ttr-success: #27ae60;
    --ttr-font: 'Georgia', 'Times New Roman', serif;
}

/* Wrapper */
#ttr-application-wrapper {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--ttr-font);
    color: var(--ttr-text);
    line-height: 1.7;
}

/* Header */
.ttr-form-header {
    text-align: center;
    margin-bottom: 30px;
}
.ttr-form-header h1 {
    color: var(--ttr-primary);
    font-size: 30px;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}
.ttr-subtitle {
    color: var(--ttr-accent);
    font-size: 16px;
    font-style: italic;
    margin: 0 0 20px;
}
.ttr-program-info {
    background: var(--ttr-bg);
    border-left: 4px solid var(--ttr-accent);
    padding: 15px 20px;
    border-radius: 4px;
    text-align: left;
    margin: 0 auto 15px;
    max-width: 500px;
}
.ttr-program-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--ttr-primary);
}
.ttr-note {
    font-size: 14px;
    color: var(--ttr-light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.ttr-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 5px;
    max-width: 600px;
}
.ttr-progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}
.ttr-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ttr-border);
    color: var(--ttr-light-text);
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.ttr-progress-step.active .ttr-step-num,
.ttr-progress-step.completed .ttr-step-num {
    background: var(--ttr-accent);
    color: var(--ttr-white);
}
.ttr-step-label {
    display: block;
    font-size: 11px;
    color: var(--ttr-light-text);
    margin-top: 5px;
}
.ttr-progress-step.active .ttr-step-label {
    color: var(--ttr-primary);
    font-weight: bold;
}
.ttr-progress-track {
    max-width: 600px;
    margin: 0 auto 30px;
    height: 4px;
    background: var(--ttr-border);
    border-radius: 2px;
    overflow: hidden;
}
.ttr-progress-fill {
    height: 100%;
    background: var(--ttr-accent);
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* Steps */
.ttr-step h2 {
    color: var(--ttr-primary);
    font-size: 22px;
    border-bottom: 2px solid var(--ttr-accent);
    padding-bottom: 10px;
    margin: 0 0 25px;
}

/* Fields */
.ttr-field {
    margin-bottom: 22px;
}
.ttr-field label {
    display: block;
    font-weight: bold;
    color: var(--ttr-primary);
    margin-bottom: 6px;
    font-size: 14px;
}
.ttr-req {
    color: var(--ttr-error);
}
.ttr-help-text {
    font-size: 12px;
    color: var(--ttr-light-text);
    margin: 0 0 6px;
}
.ttr-field input[type="text"],
.ttr-field input[type="email"],
.ttr-field input[type="tel"],
.ttr-field input[type="month"],
.ttr-field select,
.ttr-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ttr-border);
    border-radius: 5px;
    font-size: 15px;
    font-family: var(--ttr-font);
    color: var(--ttr-text);
    background: var(--ttr-white);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.ttr-field input:focus,
.ttr-field select:focus,
.ttr-field textarea:focus {
    border-color: var(--ttr-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 169, 141, 0.15);
}
.ttr-field input.ttr-error,
.ttr-field select.ttr-error,
.ttr-field textarea.ttr-error {
    border-color: var(--ttr-error);
}
.ttr-field-error-msg {
    color: var(--ttr-error);
    font-size: 12px;
    margin-top: 4px;
}

/* Radio Groups */
.ttr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ttr-radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ttr-bg);
    border: 1px solid var(--ttr-border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}
.ttr-radio-group label:hover {
    border-color: var(--ttr-accent);
    background: #faf8f5;
}
.ttr-radio-group input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--ttr-accent);
}

/* Checkbox */
.ttr-checkbox-field label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: var(--ttr-bg);
    border: 1px solid var(--ttr-border);
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
}
.ttr-checkbox-field input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--ttr-accent);
    min-width: 18px;
}

/* Confidence Slider */
.ttr-slider-field {
    text-align: center;
}
.ttr-slider-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.ttr-slider-label-left,
.ttr-slider-label-right {
    font-size: 12px;
    color: var(--ttr-light-text);
    white-space: nowrap;
}
.ttr-slider-wrap input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: var(--ttr-border);
    border-radius: 4px;
    outline: none;
}
.ttr-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: var(--ttr-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ttr-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--ttr-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.ttr-slider-value {
    font-size: 18px;
    color: var(--ttr-primary);
}
.ttr-slider-value strong {
    font-size: 32px;
    color: var(--ttr-accent);
}

/* Confirmation Box */
.ttr-confirmation-box {
    background: var(--ttr-bg);
    border-left: 4px solid var(--ttr-accent);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.ttr-confirmation-box p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ttr-primary);
}
.ttr-confirmation-box p:last-child {
    margin-bottom: 0;
}

/* File Input */
.ttr-field input[type="file"] {
    padding: 10px;
    font-size: 13px;
}

/* Navigation */
.ttr-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ttr-border);
}
.ttr-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-family: var(--ttr-font);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.ttr-btn-next,
.ttr-btn-submit {
    background: var(--ttr-accent);
    color: var(--ttr-white);
    margin-left: auto;
}
.ttr-btn-next:hover,
.ttr-btn-submit:hover {
    background: var(--ttr-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 169, 141, 0.3);
}
.ttr-btn-back {
    background: transparent;
    color: var(--ttr-primary);
    border: 1px solid var(--ttr-border);
}
.ttr-btn-back:hover {
    border-color: var(--ttr-primary);
    background: var(--ttr-bg);
}
.ttr-btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    background: var(--ttr-primary);
}
.ttr-btn-submit:hover {
    background: #354050;
    box-shadow: 0 4px 12px rgba(63, 74, 89, 0.3);
}
.ttr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
#ttr-success-message {
    text-align: center;
    padding: 50px 20px;
}
.ttr-success-icon {
    display: inline-block;
    margin-bottom: 20px;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}
#ttr-success-message h2 {
    color: var(--ttr-primary);
    border: none;
    font-size: 26px;
}
#ttr-success-message p {
    color: var(--ttr-text);
    max-width: 500px;
    margin: 10px auto;
    font-size: 15px;
    line-height: 1.7;
}
#ttr-success-message p strong {
    color: var(--ttr-primary);
}
#ttr-success-message a {
    color: var(--ttr-accent);
}

/* Responsive */
@media (max-width: 600px) {
    #ttr-application-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    .ttr-form-header h1 {
        font-size: 24px;
    }
    .ttr-step-label {
        display: none;
    }
    .ttr-step-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .ttr-slider-wrap {
        flex-direction: column;
        gap: 8px;
    }
    .ttr-nav {
        flex-direction: column;
        gap: 10px;
    }
    .ttr-btn {
        width: 100%;
        text-align: center;
    }
    .ttr-btn-next {
        margin-left: 0;
    }
}

