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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.join-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.join-hero {
    width: 100%;
    background: #ffffff;
}

.join-hero-image {
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.join-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.join-intro {
    width: 100%;
    padding: 56px 0 28px;
    background: #ffffff;
}

.join-intro .join-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.join-intro-card {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 64px 32px 56px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #6b281a 0%, #551e15 100%);
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.join-intro-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 226px;
    height: 8px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff8a00 0%, #ff1010 100%);
    border-radius: 0 0 8px 8px;
}

.join-intro-card h1 {
    margin: 0 0 18px;
    color: #ff8a00;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
}

.join-intro-card h1 span {
    color: #ff8a00;
}

.join-intro-card p {
    max-width: 1000px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.45;
}

.join-showcase-section {
    padding: 24px 0 16px;
    background: #ffffff;
}

.join-showcase-image-wrap {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

.join-showcase-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.join-supporting-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.join-supporting-images img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.join-options-section {
    padding: 48px 0 64px;
    background: #ffffff;
}

.join-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.join-option-card {
    width: 100%;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.join-option-card:nth-child(1) {
    background: linear-gradient(135deg, #e8f7ff 0%, #c8ecff 100%);
    border-color: rgba(40, 124, 197, 0.28);
}

.join-option-card:nth-child(2) {
    background: linear-gradient(135deg, #f4edff 0%, #ddd0ff 100%);
    border-color: rgba(99, 102, 241, 0.28);
}

.join-option-card:nth-child(3) {
    background: linear-gradient(135deg, #e9fff4 0%, #c7f5dc 100%);
    border-color: rgba(22, 163, 74, 0.28);
}

.join-option-card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 23, 42, 0.20);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
}

.join-option-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    font-size: 1.55rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.join-option-card:nth-child(1) .join-option-icon {
    color: #287cc5;
}

.join-option-card:nth-child(2) .join-option-icon {
    color: #4f46e5;
}

.join-option-card:nth-child(3) .join-option-icon {
    color: #16a34a;
}

.join-option-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.join-option-card>p {
    margin: 0 0 24px;
    color: #111827;
    font-size: 0.96rem;
    line-height: 1.65;
}

.join-card-block {
    margin-bottom: 24px;
}

.join-card-block h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 900;
}

.join-card-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.join-card-block li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.45;
}

.join-card-block li:last-child {
    margin-bottom: 0;
}

.join-card-block li i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.join-option-card:nth-child(1) .join-card-block li i {
    color: #287cc5;
}

.join-option-card:nth-child(2) .join-card-block li i {
    color: #4f46e5;
}

.join-option-card:nth-child(3) .join-card-block li i {
    color: #16a34a;
}

.join-card-button {
    margin-top: auto;
    min-height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    color: #ffffff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.join-card-button:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.join-card-button-volunteer {
    background-color: #075985;
    border: 1px solid #075985;
    box-shadow: 0 14px 32px rgba(7, 89, 133, 0.30);
}

.join-card-button-volunteer:hover {
    background-color: #064e75;
    box-shadow: 0 18px 40px rgba(7, 89, 133, 0.40);
}

.join-card-button-donor {
    background-color: #4c1d95;
    border: 1px solid #4c1d95;
    box-shadow: 0 14px 32px rgba(76, 29, 149, 0.30);
}

.join-card-button-donor:hover {
    background-color: #3b0764;
    box-shadow: 0 18px 40px rgba(76, 29, 149, 0.40);
}

.join-card-button-partner {
    background-color: #166534;
    border: 1px solid #166534;
    box-shadow: 0 14px 32px rgba(22, 101, 52, 0.30);
}

.join-card-button-partner:hover {
    background-color: #14532d;
    box-shadow: 0 18px 40px rgba(22, 101, 52, 0.40);
}

.join-contact-section {
    padding: 72px 0 90px;
    background: #ffffff;
}

.join-contact-card {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    color: #ffffff;
    background: #287CC5;
    border-radius: 10px;
    box-shadow: 0 26px 70px rgba(37, 99, 235, 0.22);
}

.join-contact-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
}

.join-contact-card p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.join-contact-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.join-contact-card a:hover {
    color: #111827;
    background: #f8fafc;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.join-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.join-modal-overlay.active {
    display: flex;
}

.join-modal-card {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.join-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.join-modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.25;
}

.join-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.join-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.join-modal-form {
    padding: 28px;
}

.join-modal-form h3 {
    margin: 28px 0 16px;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.35;
}

.join-modal-form h3:first-child {
    margin-top: 0;
}

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

.join-form-group {
    margin-bottom: 18px;
}

.join-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.join-form-group input,
.join-form-group select,
.join-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.4;
    outline: none;
}

.join-form-group input:focus,
.join-form-group select:focus,
.join-form-group textarea:focus {
    border-color: #287CC5;
    box-shadow: 0 0 0 3px rgba(40, 124, 197, 0.14);
}

.join-form-group .iti {
    width: 100%;
    display: block;
}

.join-form-group .iti input.join-phone-input {
    width: 100%;
    height: 45px;
    padding-top: 12px;
    padding-right: 14px;
    padding-bottom: 12px;
}

.join-form-group .iti--separate-dial-code input.join-phone-input {
    padding-left: 94px !important;
}

.join-field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.join-form-group input.join-input-error,
.join-form-group textarea.join-input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.join-radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.join-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.join-radio-group input {
    width: auto;
}

.join-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
}

.join-consent input {
    margin-top: 4px;
}

.join-form-submit {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8a00 0%, #f97316 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.join-form-submit:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
}

.join-form-submit:disabled,
.join-form-submit.is-submitting {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

.join-submit-spinner {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    vertical-align: middle;
    animation: joinSubmitSpin 0.8s linear infinite;
}

@keyframes joinSubmitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.join-message-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.join-message-popup-overlay.hide {
    display: none;
}

.join-message-popup {
    width: min(440px, 100%);
    padding: 32px 28px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.join-message-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem;
}

.join-message-popup-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.join-message-popup-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.join-message-popup h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.join-message-popup p {
    margin: 0;
    color: #475569;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.55;
}

.join-message-popup-btn {
    margin-top: 24px;
    min-width: 120px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8a00 0%, #f97316 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
}

.join-message-popup-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

body.join-modal-opened,
body.join-popup-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .join-options-grid {
        gap: 22px;
    }

    .join-option-card {
        padding: 30px 22px;
    }

    .join-showcase-image-wrap {
        height: 340px;
    }
}

@media (max-width: 991px) {
    .join-hero-image {
        height: 420px;
    }

    .join-supporting-images,
    .join-options-grid {
        grid-template-columns: 1fr;
    }

    .join-supporting-images img {
        height: 260px;
    }

    .join-showcase-image-wrap {
        height: 300px;
    }

    .join-options-grid {
        gap: 24px;
    }

    .join-option-card {
        width: 100%;
        min-height: auto;
        padding: 28px 22px;
    }

    .join-card-button {
        width: 100%;
        margin-top: 22px;
    }
}

@media (max-width: 767px) {
    .join-container {
        width: calc(100% - 24px);
    }

    .join-hero-image {
        height: 320px;
    }

    .join-intro {
        padding: 34px 0 18px;
    }

    .join-intro .join-container {
        width: 100%;
        max-width: none;
    }

    .join-intro-card {
        padding: 50px 18px 44px;
        border-radius: 0;
    }

    .join-intro-card::before {
        width: 170px;
        height: 7px;
    }

    .join-intro-card h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .join-intro-card p {
        font-size: 0.98rem;
    }

    .join-showcase-section {
        padding: 16px 0 12px;
    }

    .join-showcase-image-wrap {
        height: 230px;
        border-radius: 12px;
    }

    .join-options-section {
        padding: 32px 0 36px;
        background: #ffffff;
    }

    .join-options-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .join-option-card {
        width: 100%;
        min-height: auto;
        padding: 26px 20px;
        border-radius: 16px;
    }

    .join-option-card:hover {
        transform: none;
    }

    .join-option-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
        border-radius: 14px;
        font-size: 1.3rem;
    }

    .join-option-card h2 {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .join-option-card>p {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .join-card-block {
        margin-bottom: 20px;
    }

    .join-card-block h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .join-card-block li {
        font-size: 0.84rem;
        line-height: 1.45;
        margin-bottom: 9px;
    }

    .join-card-button {
        width: 100%;
        min-height: 42px;
        margin-top: 20px;
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .join-supporting-images img {
        height: 220px;
    }

    .join-contact-section {
        padding: 54px 0 70px;
    }

    .join-contact-card {
        padding: 36px 20px;
        border-radius: 10px;
    }

    .join-contact-card h2 {
        font-size: 1.55rem;
    }

    .join-contact-card p {
        font-size: 0.92rem;
    }

    .join-contact-card a {
        width: 100%;
        max-width: 220px;
    }

    .join-modal-overlay {
        padding: 14px;
    }

    .join-modal-card {
        max-height: calc(100vh - 28px);
        border-radius: 16px;
    }

    .join-modal-header {
        padding: 18px;
    }

    .join-modal-header h2 {
        font-size: 1.25rem;
    }

    .join-modal-form {
        padding: 20px 18px;
    }

    .join-form-grid,
    .join-radio-group {
        grid-template-columns: 1fr;
    }

    .join-form-group .iti--separate-dial-code input.join-phone-input {
        padding-left: 88px !important;
    }
}

@media (max-width: 480px) {
    .join-container {
        width: calc(100% - 24px);
    }

    .join-hero-image {
        height: 260px;
    }

    .join-intro-card {
        padding: 44px 14px 40px;
    }

    .join-intro-card::before {
        width: 140px;
        height: 6px;
    }

    .join-intro-card h1 {
        font-size: 1.7rem;
    }

    .join-showcase-image-wrap {
        height: 190px;
        border-radius: 10px;
    }

    .join-supporting-images img {
        height: 190px;
    }

    .join-options-grid {
        gap: 18px;
    }

    .join-option-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .join-option-icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .join-option-card h2 {
        font-size: 1.25rem;
    }

    .join-option-card>p {
        font-size: 0.88rem;
    }

    .join-card-block li {
        font-size: 0.8rem;
    }

    .join-card-button {
        font-size: 0.84rem;
    }

    .join-message-popup {
        padding: 28px 20px;
    }

    .join-message-popup h3 {
        font-size: 1.18rem;
    }

    .join-message-popup p {
        font-size: 0.9rem;
    }
}