/* ============================================================
   Thrive Ethically — Installer Stylesheet
   Primary:  #2B6E0C  |  Dark: #1A4A07  |  Light: #E8F5E9
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #E8F5E9 0%, #F4F8F4 50%, #E8F5E9 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #2D3A2D;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

img {
    border-width: 0;
    max-width: 100%;
}

/* ---- Page Layout ---- */
#main-container {
    width: 94%;
    max-width: 860px;
    margin: 36px auto 52px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(27, 74, 7, 0.14), 0 1px 6px rgba(0,0,0,0.07);
}

.wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* ---- Header / Brand Bar ---- */
.header {
    height: auto;
    position: relative;
    background: #ffffff;
    border-top: 6px solid #2B6E0C;
    border-bottom: 1px solid #C8E6C9;
    padding: 22px 32px 18px;
    text-align: center;
}

.header-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.hd-logo {
    float: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.hd-logo img {
    max-height: 72px;
    width: auto;
}

.header-sub {
    color: #5A8A5A;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* ---- Step Progress Bar ---- */
.install-steps {
    display: flex;
    align-items: stretch;
    background: #F4F8F4;
    border-bottom: 1px solid #C8E6C9;
    padding: 0;
    margin: 0;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 6px 11px;
    font-size: 11px;
    color: #9E9E9E;
    position: relative;
    text-align: center;
    gap: 5px;
    border-right: 1px solid #C8E6C9;
    transition: background 0.2s;
}

.step-item:last-child {
    border-right: none;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #BDBDBD;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item.active {
    color: #2B6E0C;
    font-weight: 700;
    background: #E8F5E9;
}

.step-item.active .step-num {
    background: #2B6E0C;
    box-shadow: 0 0 0 3px rgba(43,110,12,0.18);
}

.step-item.done {
    color: #66BB6A;
}

.step-item.done .step-num {
    background: #66BB6A;
}

/* ---- Content Area ---- */
.install-content {
    padding: 32px 44px 40px;
}

.install-content .page-title {
    color: #1A4A07;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #C8E6C9;
}

.install-content h3,
.install-content h4 {
    color: #1A4A07;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ---- License / Text Box ---- */
.box {
    width: 100%;
    height: 360px;
    padding: 18px 20px;
    border: 1px solid #C8E6C9;
    border-radius: 6px;
    background: #FAFFFE;
    margin: 0 0 24px;
    float: none;
    overflow: auto;
    font-size: 13px;
    line-height: 1.7;
    color: #3D4D3D;
}

.box-two {
    overflow: auto;
}

/* ---- Status / Alert blocks ---- */
.check-result {
    padding: 16px 20px;
    background: #F1F8E9;
    border-radius: 6px;
    border: 1px solid #C5E1A5;
    margin-bottom: 20px;
    line-height: 2.2;
    font-size: 13px;
}

.install-alert-error {
    background: #FFEBEE;
    border: 1px solid #EF9A9A;
    border-radius: 6px;
    padding: 14px 18px;
    color: #C62828;
    margin-bottom: 20px;
    font-size: 13px;
}

.install-alert-success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 6px;
    padding: 14px 18px;
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ---- Forms ---- */
.form-control {
    border-radius: 5px;
    border: 1px solid #C8E6C9;
    padding: 9px 13px;
    font-size: 13px;
    color: #2D3A2D;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-control:focus {
    border-color: #2B6E0C;
    box-shadow: 0 0 0 3px rgba(43,110,12,0.13);
    outline: none;
}

fieldset {
    border: 1px solid #C8E6C9;
    border-radius: 8px;
    padding: 22px 26px 26px;
    margin-bottom: 20px;
}

legend {
    color: #2B6E0C;
    font-size: 14px;
    font-weight: 700;
    padding: 0 10px;
    width: auto;
    border: none;
}

.help-block {
    font-size: 11.5px;
    color: #777;
    margin-top: 4px;
    display: block;
}

label {
    font-weight: 600;
    color: #3A4A3A;
    margin-bottom: 4px;
    font-size: 13px;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-primary:active,
.btn-primary.active {
    background-color: #2B6E0C !important;
    border-color: #2B6E0C !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(43,110,12,0.2);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1A4A07 !important;
    border-color: #1A4A07 !important;
    box-shadow: 0 4px 12px rgba(27,74,7,0.3) !important;
}

.btn-primary.disabled,
.btn-primary[disabled] {
    background-color: #9E9E9E !important;
    border-color: #9E9E9E !important;
    cursor: not-allowed;
}

.btn {
    border-radius: 5px;
    padding: 10px 24px;
    font-size: 14px;
}

/* ---- Action Row ---- */
.install-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #E8F5E9;
    margin-top: 26px;
}

/* ---- Footer ---- */
.install-footer {
    text-align: center;
    font-size: 12px;
    color: #9E9E9E;
    padding: 14px 24px;
    background: #F4F8F4;
    border-top: 1px solid #C8E6C9;
}

.install-footer a {
    color: #2B6E0C;
    text-decoration: none;
}

.footer {
    text-align: center;
    font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    #main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .install-content {
        padding: 20px 18px 28px;
    }
    .step-item {
        font-size: 9.5px;
        padding: 10px 3px;
    }
    .step-item .step-label {
        display: none;
    }
}

