/**
 * GAISHA Careers page — lightweight summary cards and role modal.
 */

.gaisha-page--careers {
    --gaisha-careers-max: 1080px;
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.gaisha-page-hero--careers .gaisha-page-hero__subtitle {
    max-width: 42rem;
}

.gaisha-careers-shell {
    width: min(100%, var(--gaisha-careers-max));
    margin: 0 auto;
}

.gaisha-careers-section {
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.gaisha-careers-section-head {
    margin-bottom: 18px;
}

.gaisha-careers-section-title {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gaisha-text, #f4f9ff);
}

.gaisha-careers-section-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.gaisha-careers-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gaisha-careers-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 16px;
}

.gaisha-careers-card__type {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(48, 222, 220, 0.88);
}

.gaisha-careers-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gaisha-text, #f4f9ff);
}

.gaisha-careers-card__summary {
    margin: 0;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(206, 222, 244, 0.84);
}

.gaisha-careers-card__trigger {
    align-self: flex-start;
    margin-top: 4px;
}

.gaisha-careers-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.gaisha-careers-list li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(206, 222, 244, 0.86);
}

.gaisha-careers-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30dedc, #8b35ff);
}

/* Modal */
body.gaisha-careers-modal-open {
    overflow: hidden;
}

.gaisha-careers-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gaisha-careers-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.gaisha-careers-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(4px);
}

.gaisha-careers-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(88vh, 860px);
    overflow: auto;
    padding: 22px 22px 20px;
    border: 1px solid rgba(166, 201, 255, 0.16);
}

.gaisha-careers-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(166, 201, 255, 0.18);
    border-radius: 999px;
    background: rgba(4, 10, 24, 0.72);
    color: rgba(223, 252, 255, 0.92);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.gaisha-careers-modal-close:hover,
.gaisha-careers-modal-close:focus-visible {
    border-color: rgba(48, 222, 220, 0.45);
    outline: none;
}

.gaisha-careers-modal-body {
    padding-right: 28px;
}

.gaisha-careers-modal-title {
    margin: 0 36px 12px 0;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--gaisha-text, #f4f9ff);
}

.gaisha-careers-modal-type {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(48, 222, 220, 0.88);
}

.gaisha-careers-modal-block {
    margin-bottom: 14px;
}

.gaisha-careers-modal-label {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 210, 240, 0.9);
}

.gaisha-careers-modal-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(206, 222, 244, 0.88);
}

.gaisha-careers-modal-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(166, 201, 255, 0.12);
}

.gaisha-careers-apply-panel {
    margin-top: 4px;
}

.gaisha-careers-apply-role-note {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: rgba(206, 222, 244, 0.88);
}

.gaisha-careers-apply-role-note strong {
    color: rgba(48, 222, 220, 0.95);
}

.gaisha-careers-form-wrap {
    padding: 16px;
    margin-bottom: 12px;
}

.gaisha-careers-apply-email {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.gaisha-careers-form-missing {
    padding: 16px 18px;
}

.gaisha-careers-form-missing p {
    margin: 0 0 8px;
}

.gaisha-careers-form-missing p:last-child {
    margin-bottom: 0;
}

/* Gravity Forms — careers modal (scoped) */
.gaisha-careers .gform_wrapper,
.gaisha-careers-modal .gform_wrapper,
.gaisha-careers-form-wrap .gform_wrapper,
.gaisha-careers-form .gform_wrapper {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.gaisha-careers .gform_wrapper .gform_heading,
.gaisha-careers-modal .gform_wrapper .gform_heading,
.gaisha-careers-form-wrap .gform_wrapper .gform_heading,
.gaisha-careers-form .gform_wrapper .gform_heading {
    display: none;
}

.gaisha-careers .gform_wrapper .gform_title,
.gaisha-careers-modal .gform_wrapper .gform_title,
.gaisha-careers-form-wrap .gform_wrapper .gform_title,
.gaisha-careers-form .gform_wrapper .gform_title,
.gaisha-careers .gform_wrapper .gform_description,
.gaisha-careers-modal .gform_wrapper .gform_description,
.gaisha-careers-form-wrap .gform_wrapper .gform_description,
.gaisha-careers-form .gform_wrapper .gform_description {
    font-size: 0.875rem;
    line-height: 1.45;
}

.gaisha-careers .gform_wrapper .gfield,
.gaisha-careers-modal .gform_wrapper .gfield,
.gaisha-careers-form-wrap .gform_wrapper .gfield,
.gaisha-careers-form .gform_wrapper .gfield {
    margin-bottom: 1rem;
}

.gaisha-careers .gform_wrapper .gform_fields,
.gaisha-careers-modal .gform_wrapper .gform_fields,
.gaisha-careers-form-wrap .gform_wrapper .gform_fields,
.gaisha-careers-form .gform_wrapper .gform_fields {
    row-gap: 1rem;
    grid-row-gap: 1rem;
}

.gaisha-careers .gform_wrapper .gfield_label,
.gaisha-careers .gform_wrapper .gform-field-label,
.gaisha-careers .gform_wrapper legend,
.gaisha-careers-modal .gform_wrapper .gfield_label,
.gaisha-careers-modal .gform_wrapper .gform-field-label,
.gaisha-careers-modal .gform_wrapper legend,
.gaisha-careers-form-wrap .gform_wrapper .gfield_label,
.gaisha-careers-form-wrap .gform_wrapper .gform-field-label,
.gaisha-careers-form-wrap .gform_wrapper legend,
.gaisha-careers-form .gfield_label,
.gaisha-careers-form .gform-field-label,
.gaisha-careers-form legend {
    font-size: 0.875rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin-bottom: 0.35rem !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.gaisha-careers .gform_wrapper .gfield_description,
.gaisha-careers .gform_wrapper .gform_fileupload_rules,
.gaisha-careers .gform_wrapper .instruction,
.gaisha-careers-modal .gform_wrapper .gfield_description,
.gaisha-careers-modal .gform_wrapper .gform_fileupload_rules,
.gaisha-careers-modal .gform_wrapper .instruction,
.gaisha-careers-form-wrap .gform_wrapper .gfield_description,
.gaisha-careers-form-wrap .gform_wrapper .gform_fileupload_rules,
.gaisha-careers-form-wrap .gform_wrapper .instruction,
.gaisha-careers-form .gfield_description,
.gaisha-careers-form .gform_fileupload_rules,
.gaisha-careers-form .instruction {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    padding-top: 0.25rem !important;
    color: rgba(214, 226, 255, 0.68) !important;
}

.gaisha-careers .gform_wrapper .gchoice label,
.gaisha-careers-modal .gform_wrapper .gchoice label,
.gaisha-careers-form-wrap .gform_wrapper .gchoice label,
.gaisha-careers-form .gchoice label {
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
    color: rgba(214, 226, 255, 0.82) !important;
}

.gaisha-careers .gform_wrapper input[type="text"],
.gaisha-careers .gform_wrapper input[type="email"],
.gaisha-careers .gform_wrapper input[type="tel"],
.gaisha-careers .gform_wrapper input[type="url"],
.gaisha-careers .gform_wrapper input[type="file"],
.gaisha-careers .gform_wrapper select,
.gaisha-careers .gform_wrapper textarea,
.gaisha-careers-modal .gform_wrapper input[type="text"],
.gaisha-careers-modal .gform_wrapper input[type="email"],
.gaisha-careers-modal .gform_wrapper input[type="tel"],
.gaisha-careers-modal .gform_wrapper input[type="url"],
.gaisha-careers-modal .gform_wrapper input[type="file"],
.gaisha-careers-modal .gform_wrapper select,
.gaisha-careers-modal .gform_wrapper textarea,
.gaisha-careers-form-wrap .gform_wrapper input[type="text"],
.gaisha-careers-form-wrap .gform_wrapper input[type="email"],
.gaisha-careers-form-wrap .gform_wrapper input[type="tel"],
.gaisha-careers-form-wrap .gform_wrapper input[type="url"],
.gaisha-careers-form-wrap .gform_wrapper input[type="file"],
.gaisha-careers-form-wrap .gform_wrapper select,
.gaisha-careers-form-wrap .gform_wrapper textarea,
.gaisha-careers-form input[type="text"],
.gaisha-careers-form input[type="email"],
.gaisha-careers-form input[type="tel"],
.gaisha-careers-form input[type="url"],
.gaisha-careers-form input[type="file"],
.gaisha-careers-form select,
.gaisha-careers-form textarea {
    width: 100%;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    min-height: 42px;
    padding: 0.7rem 0.85rem !important;
    border-radius: 14px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(4, 12, 24, 0.72) !important;
    border: 1px solid rgba(130, 180, 255, 0.22) !important;
    box-shadow: none !important;
}

.gaisha-careers .gform_wrapper textarea,
.gaisha-careers-modal .gform_wrapper textarea,
.gaisha-careers-form-wrap .gform_wrapper textarea,
.gaisha-careers-form textarea {
    min-height: 110px;
    resize: vertical;
}

.gaisha-careers .gform_wrapper input:focus,
.gaisha-careers .gform_wrapper select:focus,
.gaisha-careers .gform_wrapper textarea:focus,
.gaisha-careers-modal .gform_wrapper input:focus,
.gaisha-careers-modal .gform_wrapper select:focus,
.gaisha-careers-modal .gform_wrapper textarea:focus,
.gaisha-careers-form-wrap .gform_wrapper input:focus,
.gaisha-careers-form-wrap .gform_wrapper select:focus,
.gaisha-careers-form-wrap .gform_wrapper textarea:focus,
.gaisha-careers-form input:focus,
.gaisha-careers-form select:focus,
.gaisha-careers-form textarea:focus {
    outline: none;
    border-color: rgba(44, 231, 230, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(44, 231, 230, 0.12) !important;
}

.gaisha-careers .gform_wrapper .gform_footer,
.gaisha-careers-modal .gform_wrapper .gform_footer,
.gaisha-careers-form-wrap .gform_wrapper .gform_footer,
.gaisha-careers-form .gform_footer {
    margin-top: 1.2rem;
    padding: 0;
}

.gaisha-careers .gform_wrapper .gform_button,
.gaisha-careers .gform_wrapper input[type="submit"],
.gaisha-careers-modal .gform_wrapper .gform_button,
.gaisha-careers-modal .gform_wrapper input[type="submit"],
.gaisha-careers-form-wrap .gform_wrapper .gform_button,
.gaisha-careers-form-wrap .gform_wrapper input[type="submit"],
.gaisha-careers-form .gform_button,
.gaisha-careers-form input[type="submit"] {
    width: 100%;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 0.8rem 1.1rem !important;
    min-height: 44px;
    border: 0 !important;
    color: #06111f !important;
    background: linear-gradient(135deg, #38e1ef, #8b5cf6) !important;
    cursor: pointer;
    box-shadow: none !important;
}

.gaisha-careers .gform_wrapper .gform_button:hover,
.gaisha-careers .gform_wrapper input[type="submit"]:hover,
.gaisha-careers-modal .gform_wrapper .gform_button:hover,
.gaisha-careers-modal .gform_wrapper input[type="submit"]:hover,
.gaisha-careers-form-wrap .gform_wrapper .gform_button:hover,
.gaisha-careers-form-wrap .gform_wrapper input[type="submit"]:hover,
.gaisha-careers-form .gform_button:hover,
.gaisha-careers-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(56, 237, 255, 0.16) !important;
}

.gaisha-careers .gform_wrapper .gform_confirmation_message,
.gaisha-careers-modal .gform_wrapper .gform_confirmation_message,
.gaisha-careers-form-wrap .gform_wrapper .gform_confirmation_message,
.gaisha-careers-form .gform_confirmation_message {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(48, 222, 220, 0.24);
    background: rgba(48, 222, 220, 0.08);
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(223, 252, 255, 0.92);
}

.gaisha-careers .gform_wrapper .validation_message,
.gaisha-careers-modal .gform_wrapper .validation_message,
.gaisha-careers-form-wrap .gform_wrapper .validation_message,
.gaisha-careers-form .validation_message,
.gaisha-careers .gform_wrapper .gfield_error .gfield_label,
.gaisha-careers-modal .gform_wrapper .gfield_error .gfield_label,
.gaisha-careers-form-wrap .gform_wrapper .gfield_error .gfield_label,
.gaisha-careers-form .gfield_error .gfield_label {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
    color: rgba(255, 170, 170, 0.95) !important;
}

.gaisha-careers .gform_wrapper .gform_validation_errors,
.gaisha-careers-modal .gform_wrapper .gform_validation_errors,
.gaisha-careers-form-wrap .gform_wrapper .gform_validation_errors,
.gaisha-careers-form .gform_validation_errors {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 120, 120, 0.35);
    background: rgba(255, 80, 80, 0.08);
    color: rgba(255, 220, 220, 0.95);
}

.gaisha-careers .gform_wrapper .gfield_required,
.gaisha-careers-modal .gform_wrapper .gfield_required,
.gaisha-careers-form-wrap .gform_wrapper .gfield_required,
.gaisha-careers-form .gfield_required {
    font-size: 0.875rem;
}

@media (max-width: 960px) {
    .gaisha-careers-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gaisha-careers-modal {
        padding: 0;
        align-items: stretch;
    }

    .gaisha-careers-modal-panel {
        width: 100%;
        max-height: none;
        min-height: 100%;
        border-radius: 0;
        padding: 18px 16px 16px;
    }

    .gaisha-careers-modal-body {
        padding-right: 0;
    }

    .gaisha-careers-card-grid {
        grid-template-columns: 1fr;
    }

    .gaisha-careers-card__trigger {
        width: 100%;
        justify-content: center;
    }
}
