/* Sopchy Withdrawal - front styles */

textarea {
    max-height: 640px;
}

.sopchy-withdrawal textarea.form-control {
    padding-top: 15px;
}

.sopchy-withdrawal {
    padding: 0 0 48px;
}

.sw-alert {
    margin-bottom: 16px;
    color: #0073bd;;
}

.sw-intro {
    margin-bottom: 28px;
    color: #2a1d1d;
    font-size: 15px;
    line-height: 1.7;
}

.sw-form .sw-section {
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.sw-form .sw-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2a1d1d;
    text-align: left;
    padding-bottom: var(--padding-lg) !important;
    margin: 0 0 20px;
}

.sw-row {
    margin-bottom: 16px;
}

.sw-row:last-child {
    margin-bottom: 0;
}

.sw-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sw-req {
    color: #b3171e;;
    margin-left: 2px;
}

.sw-opt {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

.form-group {
    position: relative !important;
    margin-bottom: 20px;
    overflow: visible !important;
}

.sw-half {
    max-width: 50%;
}

.form-group .control-label {
    position: absolute !important;
    top: 17px;
    left: 15px;
    transition: top 0.2s ease, font-size 0.2s ease, padding 0.2s ease;
    background: #fff;
    z-index: 99;
    font-size: 14px;
    pointer-events: none;
    color: #2a1d1d;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.form-group:has(input:focus) .control-label,
.form-group:has(input:not(:placeholder-shown)) .control-label {
    top: -8px !important;
    font-size: 11px !important;
    padding: 0 5px !important;
    color: #2a1d1d;
}

textarea.form-control:focus~.control-label,
textarea.form-control:not(:placeholder-shown)~.control-label {
    top: -8px !important;
    font-size: 11px !important;
    padding: 0 5px !important;
    color: #2a1d1d;
}

.form-control {
    border: 1px solid #cac8c8;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 500ms;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    min-height: 33px;
    margin-top: 1px;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #151515;
    box-shadow: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    padding-top: 30px;
}

input[type="date"].form-control {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
}

.form-group:has(input[type="date"]) .control-label {
    top: -8px !important;
    font-size: 11px !important;
    padding: 0 5px !important;
    color: #2a1d1d;
}

.sw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-req-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.sw-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a1d1d;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sw-submit svg {
    width: 18px;
    height: 18px;
}

.sw-submit:hover {
    background: #3d2b2b;
}

.sw-submit:active {
    background: #3d2b2b;
}

/* Legal */
.sw-legal {
    margin-top: 32px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

.sw-legal h2 {
    font-size: 13px;
    font-weight: 700;
    color: #2a1d1d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}

.sw-legal p {
    font-size: 13px;
    color: #2a1d1d;
    line-height: 1.7;
    margin: 0;
}

.sw-success {
    text-align: center;
    padding: 60px 24px;
}


.sw-success h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
}

.sw-success p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto 12px;
    max-width: 480px;
}

.sw-btn-back {
    display: inline-block;
    margin-top: 24px;
    background: #2a1d1d;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.sw-btn-back:hover {
    background: #3d2b2b;
    color: #fff;
}


.col-form-label, .form-label {
    color: #343a40;
    font-weight: 400;
    font-size: 14px;
}

@media (max-width: 600px) {
    .sw-two-col {
        grid-template-columns: 1fr;
    }

    .sw-half {
        max-width: 100%;
    }

    .sw-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .sw-submit {
        justify-content: center;
        width: 100%;
    }
}