/* =========================================================
   Correos de Costa Rica — kit flow styles (over official theme)
   ========================================================= */

/* The7 hides .branding > a until preload JS; show without JS */
.branding > a,
.branding > a img,
.mobile-branding a,
.mobile-branding img,
#branding-bottom a,
#branding-bottom img {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    animation: none !important;
    display: block !important;
}
.branding {
    width: auto !important;
    min-width: 190px;
    flex: 0 0 auto !important;
}
.branding .mobile-logo {
    display: none !important;
}
@media (max-width: 990px) {
    .branding > a > img:not(.mobile-logo) { display: none !important; }
    .branding .mobile-logo { display: block !important; }
}

.flow-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.flow-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 18px rgba(0, 48, 87, 0.10);
    padding: 34px 36px 30px;
    margin: 10px 0 30px;
}

.flow-card h2 {
    font: 600 24px/30px "Tahoma", Helvetica, Arial, sans-serif;
    color: var(--the7-title-color, #222222);
    margin: 0 0 8px;
}

.flow-logo {
    display: block;
    margin: 0 auto 18px;
    width: 220px;
    height: auto;
}

.flow-lead {
    font: 15px/24px "Tahoma", Helvetica, Arial, sans-serif;
    color: #555555;
    margin: 0 0 20px;
}

.flow-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--the7-body-bg-color, #f7f7f7);
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0 0 6px;
    font: 600 15px/22px "Tahoma", Helvetica, Arial, sans-serif;
    color: #333333;
}

.flow-total strong {
    color: var(--the7-accent-color, #003057);
    font-size: 17px;
}

/* ---- form ---- */
.flow-form label {
    display: block;
    font: 600 13px/18px "Tahoma", Helvetica, Arial, sans-serif;
    color: #444444;
    margin: 16px 0 6px;
}

.flow-form input[type="text"],
.flow-form select {
    width: 100%;
    box-sizing: border-box;
    background: var(--the7-input-bg-color, #fdfdfd);
    border: 1px solid var(--the7-input-border-color, rgba(51, 51, 51, 0.1));
    color: var(--the7-input-color, #777777);
    font: 15px/22px "Tahoma", Helvetica, Arial, sans-serif;
    padding: 10px 14px;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.flow-form input[type="text"]:focus,
.flow-form select:focus {
    border-color: var(--the7-accent-color, #003057);
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.08);
}

.flow-form input::placeholder {
    color: var(--the7-input-color, #777777);
    opacity: .55;
}

.flow-form .row {
    display: flex;
    gap: 14px;
}

.flow-form .row > div {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .flow-form .row {
        flex-direction: column;
        gap: 0;
    }
    .flow-card {
        padding: 26px 20px 24px;
    }
}

/* ---- navy button (matches header Sucursal Virtual button) ---- */
.btn-navy {
    display: inline-block;
    width: 100%;
    margin-top: 22px;
    background: #003057;
    color: #ffffff !important;
    font: 600 16px/20px "Arial", Helvetica, Arial, Verdana, sans-serif;
    padding: 14px 34px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.btn-navy:hover {
    background: #00294d;
    color: #ffffff !important;
}

/* ---- recap / status / error ---- */
.recap {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-left: 4px solid var(--the7-accent-color, #003057);
    border-radius: 6px;
    padding: 14px 16px;
    font: 14px/22px "Tahoma", Helvetica, Arial, sans-serif;
    color: #444444;
    margin: 0 0 18px;
}

.error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #a53025;
    border-radius: 6px;
    padding: 12px 16px;
    font: 14px/20px "Tahoma", Helvetica, Arial, sans-serif;
    margin: 0 0 18px;
}

.status-ok {
    color: #4c9a2f;
    font-weight: 600;
}

.secure {
    margin-top: 16px;
    font: 13px/20px "Tahoma", Helvetica, Arial, sans-serif;
    color: #888888;
}

.secure i {
    margin-right: 5px;
    color: #76bc21;
}

.processing {
    text-align: center;
    padding: 30px 0 10px;
}

.processing h2 {
    text-align: center;
}

.bar {
    height: 8px;
    background: #e9e9e9;
    border-radius: 100px;
    overflow: hidden;
    margin: 18px 0 10px;
    text-align: left;
}

.bar-fill {
    height: 100%;
    width: 3%;
    background: var(--the7-btn-bg-color, #76bc21);
    border-radius: 100px;
    transition: width .9s linear;
}
