/* ==========================================================================
   Aardvarky Calculator - Frontend Styles
   ========================================================================== */

.acm-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 2em auto;
    color: #333;
    box-sizing: border-box;
}

.acm-wrap *,
.acm-wrap *:before,
.acm-wrap *:after {
    box-sizing: border-box;
}

.acm-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #f0ad4e;
    padding: 14px 16px;
    border-radius: 4px;
    margin: 0 0 1em 0;
    font-size: 0.9em;
    color: #7a5c1f;
    line-height: 1.5;
}

.acm-progress {
    background: #eef2f7;
    border-radius: 20px;
    height: 8px;
    margin-bottom: 2em;
    overflow: hidden;
}

.acm-progress-bar {
    background: linear-gradient(90deg, #3d6ba3, #5a8bc4);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    width: 0%;
}

.acm-step {
    display: none;
    animation: acmFadeIn 0.4s ease;
}

.acm-step.active {
    display: block;
}

@keyframes acmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.acm-step h2 {
    color: #3d6ba3;
    font-size: 1.75em;
    margin: 0 0 0.3em 0;
    font-weight: 600;
    line-height: 1.2;
}

.acm-h3 {
    color: #3d6ba3;
    margin: 1.5em 0 0.5em 0;
    font-size: 1.1em;
    font-weight: 600;
}

.acm-subtitle {
    color: #666;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.acm-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 1em 0;
}

.acm-option {
    background: #fff;
    border: 2px solid #dde3ec;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.acm-option:hover {
    border-color: #5a8bc4;
    box-shadow: 0 2px 12px rgba(61, 107, 163, 0.1);
    transform: translateY(-1px);
}

.acm-option.selected {
    border-color: #3d6ba3;
    background: #f4f8fd;
    box-shadow: 0 2px 12px rgba(61, 107, 163, 0.15);
}

.acm-option-title {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.acm-option-desc {
    font-size: 0.85em;
    color: #777;
    line-height: 1.4;
}

.acm-option-price {
    margin-top: 8px;
    font-size: 0.85em;
    color: #3d6ba3;
    font-weight: 600;
}

.acm-check {
    display: block;
    background: #fff;
    border: 2px solid #dde3ec;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding-left: 54px;
}

.acm-check:hover {
    border-color: #5a8bc4;
}

.acm-check.selected {
    border-color: #3d6ba3;
    background: #f4f8fd;
}

.acm-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.acm-check:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #cbd3dd;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s;
}

.acm-check.selected:before {
    background: #3d6ba3;
    border-color: #3d6ba3;
}

.acm-check.selected:after {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

.acm-check-title {
    font-weight: 600;
    color: #2a2a2a;
    display: block;
}

.acm-check-desc {
    font-size: 0.85em;
    color: #777;
    margin-top: 3px;
    display: block;
}

.acm-check-price {
    float: right;
    color: #3d6ba3;
    font-weight: 600;
    font-size: 0.9em;
}

.acm-slider-wrap {
    margin: 1.5em 0;
    background: #f4f8fd;
    padding: 20px;
    border-radius: 10px;
}

.acm-slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2a2a2a;
}

.acm-slider-value {
    color: #3d6ba3;
    font-size: 1.3em;
}

.acm-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #dde3ec;
    border-radius: 5px;
    outline: none;
}

.acm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #3d6ba3;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.acm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.acm-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #3d6ba3;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.acm-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    gap: 10px;
}

.acm-btn {
    background: #3d6ba3;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}

.acm-btn:hover {
    background: #2d5483;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 107, 163, 0.3);
}

.acm-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.acm-btn-back {
    background: transparent;
    color: #666;
    padding: 14px 24px;
}

.acm-btn-back:hover {
    background: #f4f8fd;
    color: #3d6ba3;
    box-shadow: none;
    transform: none;
}

.acm-live-price {
    background: linear-gradient(135deg, #3d6ba3, #5a8bc4);
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 1em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.acm-live-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.acm-live-amount,
.acm-live-monthly,
.acm-live-final {
    font-size: 1.6em;
    font-weight: 700;
}

.acm-monthly-bar {
    background: linear-gradient(135deg, #5a8bc4, #3d6ba3);
}

.acm-fasttrack {
    background: linear-gradient(135deg, #f4f8fd, #e8f0fa);
    border: 2px solid #3d6ba3;
    border-radius: 10px;
    padding: 20px;
    margin: 1.5em 0;
    position: relative;
}

.acm-fasttrack-badge {
    display: inline-block;
    background: #3d6ba3;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.acm-fasttrack h3 {
    margin: 0 0 8px 0;
    color: #3d6ba3;
    font-size: 1.2em;
}

.acm-fasttrack p {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.acm-input,
.acm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dde3ec;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.acm-input:focus,
.acm-textarea:focus {
    outline: none;
    border-color: #3d6ba3;
}

.acm-input-group {
    margin-bottom: 16px;
}

.acm-input-group label {
    display: block;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.acm-required {
    color: #d9534f;
}

.acm-consent {
    font-size: 0.85em;
    color: #666;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.acm-consent input {
    margin-top: 3px;
    flex-shrink: 0;
}

.acm-result {
    text-align: center;
    padding: 2em 1em;
}

.acm-result-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #3d6ba3;
    margin: 0.5em 0;
    line-height: 1.1;
}

.acm-result-note {
    color: #666;
    margin: 1em auto;
    max-width: 600px;
    font-size: 0.95em;
    line-height: 1.6;
}

.acm-result-monthly-wrap {
    background: #f4f8fd;
    padding: 16px;
    border-radius: 10px;
    margin: 1.5em auto;
    max-width: 400px;
}

.acm-result-monthly-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

.acm-result-monthly {
    font-size: 1.4em;
    font-weight: 600;
    color: #3d6ba3;
}

.acm-hidden {
    display: none !important;
}

.acm-error-wrap {
    min-height: 0;
}

.acm-error {
    background: #fde8e8;
    border: 1px solid #f8b4b4;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 1em 0;
    font-size: 0.9em;
}

.acm-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: acmSpin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes acmSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .acm-wrap {
        margin: 1em auto;
        padding: 0 12px;
    }
    .acm-step h2 {
        font-size: 1.4em;
    }
    .acm-options {
        grid-template-columns: 1fr;
    }
    .acm-btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .acm-result-price {
        font-size: 2em;
    }
    .acm-live-amount,
    .acm-live-monthly,
    .acm-live-final {
        font-size: 1.3em;
    }
}
