.join-member-section {
    padding: 55px 20px 70px;
    background: var(--white);
}

.join-member-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.join-member-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
}

.join-member-card h3 {
    margin: 0 0 8px;
    text-align: center;
    color: var(--maroon-dark);
    font-size: 25px;
    font-weight: 800;
}

.join-member-card .form-sub {
    text-align: center;
    margin: 0 auto 30px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.join-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.join-form-field {
    display: flex;
    flex-direction: column;
}

.join-form-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon-dark);
    margin-bottom: 7px;
}

.join-form-field input,
.join-form-field select,
.join-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: #333;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.join-form-field input,
.join-form-field select {
    height: 46px;
}

.join-form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.join-form-field input:focus,
.join-form-field select:focus,
.join-form-field textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(190, 150, 60, 0.10);
}

.join-submit-wrap {
    text-align: center;
    margin-top: 25px;
}

.join-submit-btn {
    border: 0;
    border-radius: 30px;
    padding: 12px 30px;
    min-width: 190px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    background: var(--maroon);
    cursor: pointer;
    transition: all 0.25s ease;
}

.join-submit-btn:hover {
    background: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.join-submit-btn:active {
    transform: translateY(0);
}

.join-form-note {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.join-form-alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
}

.join-form-alert.success {
    color: #176b3a;
    background: #edf9f1;
    border: 1px solid #b9e5c9;
}

.join-form-alert.error {
    color: #9d2525;
    background: #fff1f1;
    border: 1px solid #efc0c0;
}

/* Mobile */
@media (max-width: 700px) {

    .join-member-section {
        padding: 35px 15px 50px;
    }

    .join-member-card {
        padding: 25px 18px;
        border-radius: 14px;
    }

    .join-member-card h3 {
        font-size: 21px;
    }

    .join-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .join-submit-btn {
        width: 100%;
    }
}

/* Full Width Image Upload */
.image-full-row {
    width: 100%;
}

.image-full-field {
    width: 100%;
    flex: 0 0 100%;
}

.image-full-field input[type="file"] {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.captcha-field {
    width: 100%;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
}

/* CAPTCHA Image */
.captcha-image-wrap {
    height: 58px;
    min-width: 180px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    border: 1px solid #d9dee7;
    border-radius: 10px;

    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.captcha-image-wrap img {
    display: block;
    width: 170px;
    height: 48px;
    object-fit: contain;
}

/* Refresh Button */
.captcha-refresh {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9dee7;
    border-radius: 10px;

    background: #ffffff;
    color: #555f70;

    cursor: pointer;

    font-size: 17px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.captcha-refresh:hover {
    background: #f1f5f9;
    color: #111827;
    border-color: #bfc7d4;

    transform: rotate(90deg);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(0.94);
}

.captcha-refresh i {
    line-height: 1;
}

/* Input */
.captcha-input-wrap {
    flex: 1;
    min-width: 0;
}

.captcha-input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #d9dee7;
    border-radius: 10px;

    background: #ffffff;

    font-size: 16px;
    color: #1f2937;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.captcha-input::placeholder {
    color: #9ca3af;
}

.captcha-input:focus {
    border-color: #8b5cf6;
    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.10);
}

/* Help Text */
.captcha-help {
    display: block;

    margin-top: 7px;
    padding-left: 2px;

    color: #8a93a3;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .captcha-box {
        gap: 10px;
    }

    .captcha-image-wrap {
        min-width: 150px;
        height: 54px;
    }

    .captcha-image-wrap img {
        width: 140px;
        height: 44px;
    }

    .captcha-refresh {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .captcha-input {
        height: 50px;
        font-size: 15px;
        padding: 0 13px;
    }
}


@media (max-width: 520px) {

    .captcha-box {
        display: grid;
        grid-template-columns: 1fr 46px;
        gap: 10px;
    }

    .captcha-image-wrap {
        min-width: 0;
        width: 100%;
        height: 56px;
    }

    .captcha-image-wrap img {
        width: 100%;
        max-width: 170px;
        height: 46px;
    }

    .captcha-refresh {
        width: 46px;
        height: 46px;
        flex-basis: auto;
    }

    .captcha-input-wrap {
        grid-column: 1 / -1;
        width: 100%;
    }

    .captcha-input {
        width: 100%;
        height: 52px;
    }
}

.custom-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 380px;
    min-height: 78px;
    padding: 15px 18px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    z-index: 99999;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    animation: toastSlideIn 0.45s cubic-bezier(.21, 1.02, .73, 1) forwards;
}

.toast-success {
    border-left: 5px solid #16a34a;
}

.toast-error {
    border-left: 5px solid #dc2626;
}

.toast-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-content strong {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.toast-content span {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    word-break: break-word;
}

.toast-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress {
    background: #16a34a;
}

.toast-error .toast-progress {
    background: #dc2626;
}

@keyframes toastSlideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-hide {
    animation: toastSlideOut 0.35s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .custom-toast {
        top: 15px;
        left: 15px;
        right: 15px;
        width: auto;
    }
}