/* ============================================
   OSL Wills Quote Calculator
   Brand: Navy #1B2E4A | Gold #C5A267
   ============================================ */

.osl-wq-wrapper { max-width: 800px; margin: 40px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Form Header */
.osl-wq-form-header {
    background: linear-gradient(135deg, #1B2E4A 0%, #2a4570 100%);
    padding: 35px 40px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.osl-wq-header-icon { font-size: 42px; }
.osl-wq-header-text h3 {
    color: #C5A267 !important;
    font-size: 26px;
    margin: 0 0 6px 0;
    padding: 0;
}
.osl-wq-header-text span {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

/* Form Body */
.osl-wq-form-body {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Steps */
.osl-wq-step { display: none; }
.osl-wq-step-active { display: block; animation: osl-wq-fadein 0.4s ease; }
@keyframes osl-wq-fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.osl-wq-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}
.osl-wq-step-num {
    width: 36px; height: 36px;
    background: #C5A267;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.osl-wq-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B2E4A;
}

/* Card Selection (Who) */
.osl-wq-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.osl-wq-card {
    cursor: pointer;
    display: block;
}
.osl-wq-card input[type="radio"] { position: absolute; left: -9999px; }
.osl-wq-card-inner {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}
.osl-wq-card-inner:hover {
    border-color: #C5A267;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197,162,103,0.2);
}
.osl-wq-card-selected .osl-wq-card-inner {
    border-color: #C5A267;
    background: linear-gradient(135deg, #fefcf7 0%, #fdf6e8 100%);
    box-shadow: 0 4px 15px rgba(197,162,103,0.25);
}
.osl-wq-card-icon { font-size: 40px; margin-bottom: 10px; }
.osl-wq-card-label { font-size: 18px; font-weight: 700; color: #1B2E4A; margin-bottom: 4px; }
.osl-wq-card-sub { font-size: 14px; color: #888; }

/* Checkbox Group */
.osl-wq-check-group { display: flex; flex-direction: column; gap: 10px; }
.osl-wq-check {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.osl-wq-check:hover { border-color: #C5A267; background: #fefcf7; }
.osl-wq-check input[type="checkbox"] { position: absolute; left: -9999px; }
.osl-wq-check-box {
    width: 26px; height: 26px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.2s;
}
.osl-wq-check-selected .osl-wq-check-box {
    background: #C5A267;
    border-color: #C5A267;
}
.osl-wq-check-selected {
    border-color: #C5A267;
    background: #fefcf7;
}
.osl-wq-check-text { flex: 1; }
.osl-wq-check-text strong { display: block; color: #1B2E4A; font-size: 15px; }
.osl-wq-check-text small { display: block; color: #888; font-size: 13px; margin-top: 2px; }
.osl-wq-check-tag {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.osl-wq-check-price {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

/* Progress Bar */
.osl-wq-progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 30px 0 20px;
    overflow: hidden;
}
.osl-wq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C5A267, #d4b87a);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Navigation */
.osl-wq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.osl-wq-btn-back {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.osl-wq-btn-back:hover { border-color: #1B2E4A; color: #1B2E4A; }

.osl-wq-btn-next,
.osl-wq-btn-quote {
    background: #C5A267 !important;
    color: #fff !important;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
    letter-spacing: 0.5px;
}
.osl-wq-btn-next:hover,
.osl-wq-btn-quote:hover { background: #B08C4A !important; transform: translateY(-1px); }
.osl-wq-btn-quote { background: #1B2E4A !important; }
.osl-wq-btn-quote:hover { background: #152540 !important; }

/* ============================================
   RESULT
   ============================================ */
.osl-wq-result-container { margin-top: 25px; }
.osl-wq-result-inner {
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.osl-wq-result-badge {
    display: inline-block;
    background: #C5A267;
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.osl-wq-result-inner h2 {
    color: #1B2E4A;
    font-size: 24px;
    margin: 0 0 8px 0;
}
.osl-wq-result-sub {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Quote Card */
.osl-wq-quote-card {
    border: 2px solid #C5A267;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 25px;
}
.osl-wq-quote-card-header {
    background: linear-gradient(135deg, #1B2E4A 0%, #2a4570 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.osl-wq-quote-card-header h4 {
    color: #fff !important;
    margin: 0;
    font-size: 20px;
}
.osl-wq-quote-price {
    font-size: 28px;
    font-weight: 800;
    color: #C5A267;
}
.osl-wq-quote-card-body {
    padding: 25px;
}
.osl-wq-for-label {
    color: #555;
    margin-bottom: 15px;
}
.osl-wq-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.osl-wq-includes li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}
.osl-wq-includes li:last-child { border-bottom: none; }
.osl-wq-tick {
    color: #C5A267;
    font-weight: 700;
    margin-right: 10px;
}

/* Hidden Total */
.osl-wq-hidden-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}
.osl-wq-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1B2E4A;
    padding: 18px 25px;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
}
.osl-wq-total-row strong { color: #C5A267; font-size: 24px; }
.osl-wq-total-note {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 10px;
}

/* Alternative Packages */
.osl-wq-alternatives {
    margin-bottom: 25px;
}
.osl-wq-alternatives h4 {
    color: #1B2E4A;
    font-size: 16px;
    margin-bottom: 15px;
}
.osl-wq-alt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.osl-wq-alt-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px;
    background: #fafafa;
}
.osl-wq-alt-name {
    font-weight: 700;
    color: #1B2E4A;
    font-size: 15px;
    margin-bottom: 4px;
}
.osl-wq-alt-price {
    color: #C5A267;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 10px;
}
.osl-wq-alt-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.osl-wq-alt-card li {
    font-size: 13px;
    color: #666;
    padding: 3px 0;
}
.osl-wq-alt-card li:before {
    content: '\2713  ';
    color: #C5A267;
}

/* Complex Card */
.osl-wq-complex-card {
    border-color: #1B2E4A;
}
.osl-wq-complex-card .osl-wq-quote-card-body ul {
    list-style: none;
    padding: 0;
}
.osl-wq-complex-card .osl-wq-quote-card-body li {
    padding: 6px 0;
    color: #555;
}
.osl-wq-note {
    background: #f8f6f0;
    border-left: 4px solid #C5A267;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-size: 14px;
    margin-top: 15px;
}

/* ============================================
   GATE BOX
   ============================================ */
.osl-wq-gate-box-wrap { margin-top: 25px; }
.osl-wq-gate-box {
    background: linear-gradient(135deg, #1B2E4A 0%, #2a4570 100%);
    border-radius: 14px;
    padding: 35px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(27,46,74,0.3);
}
.osl-wq-gate-lock { font-size: 40px; margin-bottom: 10px; }
.osl-wq-gate-box h3 { color: #C5A267 !important; font-size: 24px; margin: 0 0 8px 0; }
.osl-wq-gate-box p { color: #ccc; font-size: 15px; margin: 0 0 20px 0; }
.osl-wq-gate-box small { display: block; margin-top: 15px; color: #888; font-size: 12px; }
.osl-wq-gate-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.osl-wq-gate-input {
    flex: 1;
    min-width: 220px;
    height: 50px;
    padding: 0 18px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.95);
    transition: border-color 0.3s;
}
.osl-wq-gate-input:focus {
    border-color: #C5A267;
    box-shadow: 0 0 0 3px rgba(197,162,103,0.3);
    outline: none;
}
.osl-wq-gate-input.osl-wq-error {
    border-color: #ff4444 !important;
    background: #fff5f5;
}

/* Button */
.osl-wq-button {
    background: #C5A267 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 30px;
    height: 50px;
    line-height: 50px;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
}
.osl-wq-button:hover { background: #B08C4A !important; transform: translateY(-1px); color: #fff !important; }
.osl-wq-button:disabled { cursor: not-allowed !important; opacity: 0.7; }
.osl-wq-btn-call { background: #1B2E4A !important; }
.osl-wq-btn-call:hover { background: #152540 !important; }

/* Confirmed */
.osl-wq-confirmed {
    background: #f0faf0;
    border: 2px solid #4CAF50;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    margin-top: 25px;
}
.osl-wq-confirmed-icon {
    width: 60px; height: 60px;
    background: #4CAF50;
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.osl-wq-confirmed h3 { color: #2e7d32 !important; font-size: 24px; margin: 0 0 10px; }
.osl-wq-confirmed p { color: #555; margin: 0 0 8px; font-size: 15px; }
.osl-wq-confirmed-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Shake animation */
@keyframes osl-wq-shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.osl-wq-shake { animation: osl-wq-shake 0.3s ease 2; }

/* Loading */
.osl-wq-loading { display: inline-block; margin-right: 8px; }
.osl-wq-loading:after {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: osl-wq-spin 0.6s linear infinite;
    vertical-align: middle;
}
.osl-wq-loading-lg:after {
    content: '';
    display: inline-block;
    width: 32px; height: 32px;
    border: 3px solid #C5A267;
    border-top-color: transparent;
    border-radius: 50%;
    animation: osl-wq-spin 0.6s linear infinite;
}
@keyframes osl-wq-spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .osl-wq-wrapper { margin: 20px 15px; }
    .osl-wq-form-header { padding: 25px 20px; flex-direction: column; text-align: center; border-radius: 12px 12px 0 0; }
    .osl-wq-header-text h3 { font-size: 22px; }
    .osl-wq-form-body { padding: 25px 20px; border-radius: 0 0 12px 12px; }
    .osl-wq-card-group { grid-template-columns: 1fr; }
    .osl-wq-step-title { font-size: 17px; }
    .osl-wq-result-inner { padding: 25px 20px; }
    .osl-wq-quote-card-header { flex-direction: column; gap: 8px; text-align: center; }
    .osl-wq-alt-grid { grid-template-columns: 1fr; }
    .osl-wq-gate-box { padding: 25px 20px; }
    .osl-wq-gate-form { flex-direction: column; }
    .osl-wq-gate-form .osl-wq-button { width: 100%; }
    .osl-wq-confirmed-btns { flex-direction: column; }
    .osl-wq-confirmed-btns .osl-wq-button { width: 100%; }
    .osl-wq-total-row { flex-direction: column; text-align: center; gap: 8px; }
    .osl-wq-nav { flex-direction: column; }
    .osl-wq-btn-next, .osl-wq-btn-quote { margin-left: 0; width: 100%; text-align: center; }
    .osl-wq-btn-back { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .osl-wq-header-text h3 { font-size: 19px; }
    .osl-wq-card-inner { padding: 20px 15px; }
    .osl-wq-check { padding: 12px 14px; }
}
