/* Withdrawal page — Magento/dd theme CSS override (template lives in SDM_Withdrawal module) */


.withdrawal-index-index {
    .columns {
        margin: 0 auto;
    }
}

.sdm-withdrawal {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Intro --- */

.sdm-withdrawal__title {
    font-size: 28px;
    font-weight: 700;
    color: #161c26;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.sdm-withdrawal__intro-html {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.sdm-withdrawal__intro-html .returns-container p {
    margin: 0 0 1rem;
}

.sdm-withdrawal__intro-html .returns-container strong {
    font-weight: 500;
}

.sdm-withdrawal__intro-html .returns-checklist {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.sdm-withdrawal__intro-html .returns-checklist li {
    position: relative;
    padding-left: 2.25rem;
    line-height: 1.5;
}

.sdm-withdrawal__intro-html .returns-checklist li:last-child {
    padding-bottom: 0;
}

.sdm-withdrawal__intro-html .returns-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #1a3a5c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.sdm-withdrawal__intro-html .contact-block {
    margin-top: 1.5rem;
}

.sdm-withdrawal__intro-html .contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sdm-withdrawal__intro-html .contact-details__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.sdm-withdrawal__intro-html .contact-details__item::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.sdm-withdrawal__intro-html .contact-details__item--company::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2' ry='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01'/%3E%3Cpath d='M16 6h.01'/%3E%3Cpath d='M12 6h.01'/%3E%3Cpath d='M12 10h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 10h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 10h.01'/%3E%3Cpath d='M8 14h.01'/%3E%3C/svg%3E");
}

.sdm-withdrawal__intro-html .contact-details__item--address::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.sdm-withdrawal__intro-html .contact-details__item--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.sdm-withdrawal__intro-html .contact-details__item--phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.sdm-withdrawal__intro-html .contact-details a {
    color: #161c26;
    text-decoration: none;
}

.sdm-withdrawal__intro-html .contact-details a:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

/* --- Form card --- */

.sdm-withdrawal__card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e7e7e7;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.sdm-withdrawal__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.sdm-withdrawal__row {
    margin-bottom: 1.25rem;
}

.sdm-withdrawal__row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sdm-withdrawal__field {
    margin-bottom: 0;
}

.sdm-withdrawal__label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #161c26;
    margin-bottom: 0.5rem;
    font-family: Montserrat, sans-serif;
}

.sdm-withdrawal__required {
    color: #c00;
}

.sdm-withdrawal__control {
    display: flex;
    align-items: stretch;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

/*.sdm-withdrawal__control--textarea {*/
/*    align-items: flex-start;*/
/*}*/

.sdm-withdrawal__input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    color: #888;
    border-right: 1px solid #e7e7e7;
    background: #f6f7fb;
}

.sdm-withdrawal__control--textarea .sdm-withdrawal__input-icon {
    padding-top: 0.85rem;
    align-items: flex-start;
}

.sdm-withdrawal__input,
.sdm-withdrawal__textarea {
    flex: 1;
    min-width: 0;
    height: 36px !important;
    border: none !important;
    outline: none;
    background: #fff;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    color: #333;
    box-sizing: border-box;
    border-radius: 6px !important;
}

.sdm-withdrawal__input {
    padding: 0 1rem;
    height: 50px;
}

.sdm-withdrawal__textarea {
    padding: 0.85rem 1rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.sdm-withdrawal__input::placeholder,
.sdm-withdrawal__textarea::placeholder {
    color: #bbbbbb !important;
    font-size: 13px;
}

.sdm-withdrawal__control:focus-within {
    /*border-color: #0038a2;*/
    box-shadow: 0 0 0 1px #e7e7e7;
}

.sdm-withdrawal__actions {
    margin-top: 1.25rem;
}

.sdm-withdrawal__submit {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: #0038a2 !important;
    border: 1px solid #0038a2 !important;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0.85rem 1.75rem;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin: 0 !important;
}

.sdm-withdrawal__submit:hover {
    background: #122a42;
    border-color: #122a42;
    color: #fff;
}

.sdm-withdrawal__submit-icon {
    display: flex;
    align-items: center;
    line-height: 0;
}

/* reCAPTCHA spacing */
.sdm-withdrawal__fieldset .field-recaptcha,
.sdm-withdrawal__fieldset .g-recaptcha {
    margin-top: 1.25rem;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .sdm-withdrawal__title {
        font-size: 22px;
    }

    .sdm-withdrawal__card {
        padding: 1.25rem 1rem;
    }

    .sdm-withdrawal__row--half {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sdm-withdrawal__row--half .sdm-withdrawal__field {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .sdm-withdrawal {
        padding: 0 10px;
    }

    .sdm-withdrawal__intro-html {
        font-size: 14px;
    }

    .sdm-withdrawal__submit {
        width: 100%;
        justify-content: center;
    }
}
