/* V360 – Lepingust taganemine
   Olemasolev teema saab .button ja .btn klasse ise kujundada.
   Allolev on fallback, kui saidil vastavat kujundust pole.
*/

.v360-withdrawal {
    --v360-dark: #001c55;
    --v360-accent: #0c6ca8;
    --v360-light: #f3f3f3;
    --v360-border: #dfe3e8;
    --v360-text: #001c55;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--v360-text);
    font-family: inherit;
}

.v360-withdrawal__intro { margin-bottom: 40px;
    text-align: center;
}
.v360-withdrawal__title { margin: 0 0 16px; color: var(--v360-dark); }
.v360-withdrawal__lead { max-width: 720px; margin: 0 auto; line-height: 1.6; }

.v360-withdrawal__step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--v360-dark);
    font-size: 16px;
    font-weight: 700;
}

.v360-withdrawal__step-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--v360-dark);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

.v360-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.v360-field { margin-bottom: 22px; }
.v360-field--full { width: 100%; }

.v360-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--v360-dark);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.v360-optional { opacity: .55; font-weight: 400; }

.v360-withdrawal :where(input[type="text"], input[type="email"], input[type="tel"], textarea) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 15px 16px;
    background: #fff;
    color: var(--v360-dark);
    border: 1px solid var(--v360-border);
    border-radius: 4px;
    font: inherit;
    line-height: 1.4;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.v360-withdrawal :where(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
    border-color: var(--v360-accent);
    box-shadow: 0 0 0 3px rgba(12, 108, 168, .12);
}

.v360-withdrawal textarea { resize: vertical; min-height: 120px; }

.v360-withdrawal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.v360-withdrawal :where(.v360-button),
.v360-withdrawal-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 2px solid var(--v360-accent);
    border-radius: 4px;
    background: var(--v360-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.v360-withdrawal :where(.v360-button--primary):hover {
    background: var(--v360-dark);
    border-color: var(--v360-dark);
    color: #fff;
}

.v360-withdrawal :where(.v360-button--secondary) {
    background: transparent;
    border-color: var(--v360-dark);
    color: var(--v360-dark);
}

.v360-withdrawal :where(.v360-button--secondary):hover {
    background: var(--v360-dark);
    color: #fff;
}

.v360-withdrawal :where(.v360-button):disabled { opacity: .55; cursor: wait; }

.v360-withdrawal__summary,
.v360-order-items {
    padding: 30px;
    background: var(--v360-light);
    border-radius: 18px;
}

.v360-order-items { margin-bottom: 18px; }
.v360-order-items h3,
.v360-withdrawal__summary h3 { margin: 0 0 16px; color: var(--v360-dark); }
.v360-order-items__help { margin: 0 0 16px; }

.v360-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 28, 85, .10);
    cursor: pointer;
}

.v360-order-item input { width: 18px; height: 18px; }

.v360-withdrawal__summary dl { margin: 0; }

.v360-summary-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 28, 85, .10);
}

.v360-summary-row:last-child { border-bottom: 0; }
.v360-summary-row dt { font-weight: 700; }
.v360-summary-row dd { margin: 0; white-space: pre-line; }

.v360-withdrawal__confirm-text { margin: 24px 0; line-height: 1.6; }

.v360-withdrawal__message {
    margin-bottom: 24px;
    padding: 15px 18px;
    border-radius: 4px;
    font-size: 14px;
}

.v360-withdrawal__message--error {
    background: #fff2f2;
    color: #8d2020;
    border: 1px solid #efcccc;
}

.v360-withdrawal__success {
    padding: 40px;
    background: var(--v360-light);
    border-radius: 18px;
    text-align: center;
}


.v360-withdrawal__success h3 { margin: 0 0 12px; color: var(--v360-dark); }
.v360-withdrawal__reference { margin-top: 20px; }
.v360-withdrawal [hidden] { display: none !important; }

@media (max-width: 767px) {
    .v360-form-grid { grid-template-columns: 1fr; gap: 0; }
    .v360-withdrawal__intro { margin-bottom: 30px; }
    .v360-withdrawal__actions { flex-direction: column; }
    .v360-withdrawal__actions .v360-button { width: 100%; }
    .v360-withdrawal__summary,
    .v360-order-items { padding: 22px; border-radius: 12px; }
    .v360-summary-row { grid-template-columns: 1fr; gap: 5px; }
    .v360-withdrawal__success { padding: 30px 20px; border-radius: 12px; }
}
