/**
 * JAEVC Get Connected for Ahimsa Page Styles
 */

/* Base Container */
.jaevc-get-connected {
    --jy-primary: #667eea;
    --jy-primary-dark: #5a67d8;
    --jy-secondary: #764ba2;
    --jy-yja-color: #38a169;
    --jy-yjp-color: #dd6b20;
    --jy-text: #2d3748;
    --jy-text-light: #4a5568;
    --jy-text-muted: #718096;
    --jy-border: #e2e8f0;
    --jy-bg-light: #f7fafc;
    --jy-white: #fff;
    --jy-error: #e53e3e;
    --jy-success: #38a169;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--jy-text);
    padding: 0 0 32px;
}

/* Hero Section */
.jy-hero {
    background: linear-gradient(135deg, var(--jy-primary) 0%, var(--jy-secondary) 100%);
    padding: 60px 24px;
    text-align: center;
    color: var(--jy-white);
    border-radius: 16px;
    margin-bottom: 48px;
}

.jy-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.jy-hero__badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.jy-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jy-hero__badge--yja {
    background: var(--jy-yja-color);
    color: var(--jy-white);
}

.jy-hero__badge--yjp {
    background: var(--jy-yjp-color);
    color: var(--jy-white);
}

.jy-hero__title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
}

.jy-hero__subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0 0 24px;
    line-height: 1.6;
}

.jy-hero__subtitle strong {
    font-weight: 600;
}

.jy-hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
}

.jy-hero__icon {
    font-size: 20px;
}

/* Why Youth Section */
.jy-why {
    padding: 0 24px 48px;
    text-align: center;
}

.jy-why__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--jy-text);
    margin: 0 0 32px;
}

.jy-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.jy-why__card {
    background: var(--jy-white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jy-why__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.jy-why__card .jy-why__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.jy-why__card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jy-text);
    margin: 0 0 12px;
}

.jy-why__card p {
    font-size: 15px;
    color: var(--jy-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Form Section */
.jy-form-section {
    padding: 24px 24px 8px;
}

.jy-form-layout {
    max-width: 760px;
    margin: 0 auto;
}

.jy-form-container {
    background: var(--jy-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 48px;
    overflow: hidden;
}

.jy-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.jy-form-header__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--jy-text);
    margin: 0 0 12px;
}

.jy-form-header__subtitle {
    font-size: 15px;
    color: var(--jy-text-light);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Community Wall Glimpse */
.jy-wall-glimpse {
    margin: 0 0 28px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.jy-wall-glimpse__eyebrow {
    margin: 0;
    color: var(--jy-primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.jy-wall-glimpse__copy {
    margin: 6px 0 12px;
    color: var(--jy-text-light);
    font-size: 14px;
}

.jy-wall-glimpse__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.jy-wall-glimpse__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.jy-wall-glimpse__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jy-primary), var(--jy-secondary));
    color: var(--jy-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.jy-wall-glimpse__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.jy-wall-glimpse__details {
    min-width: 0;
}

.jy-wall-glimpse__card:has(.jy-supporter-card__affiliation) .jy-wall-glimpse__details {
    padding-right: 36px;
}

.jy-wall-glimpse__details .jy-supporter-card__bio {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
}

.jy-wall-glimpse__name {
    margin: 0;
    color: var(--jy-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.jy-wall-glimpse__meta {
    margin: 2px 0 0;
    color: var(--jy-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.jy-wall-glimpse__link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--jy-primary-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.jy-wall-glimpse__link:hover {
    text-decoration: underline;
}

/* Form Message */
#jy-form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

#jy-form-message.success {
    display: block;
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

#jy-form-message.error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Form Styles */
.jy-form__group {
    margin-bottom: 24px;
}

.jy-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jy-text);
    margin-bottom: 8px;
}

.jy-form__required {
    color: var(--jy-error);
}

.jy-form__optional {
    color: var(--jy-text-muted);
    font-weight: 400;
}

.jy-form__input,
.jy-form__textarea,
.jy-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--jy-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--jy-text);
    background: var(--jy-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.jy-form__input:focus,
.jy-form__textarea:focus,
.jy-form__select:focus {
    outline: none;
    border-color: var(--jy-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.jy-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.jy-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Phone Input */
.jy-phone-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.jy-phone-country-wrapper {
    position: relative;
    flex: 0 0 120px;
    max-width: 38%;
    min-width: 0;
}

.jy-phone-selector {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid var(--jy-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--jy-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.jy-phone-selector:hover {
    border-color: var(--jy-primary);
}

.jy-phone-country-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--jy-white);
    border: 1px solid var(--jy-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}

.jy-phone-country-list.open {
    display: block;
}

.jy-phone-country-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border-bottom: 1px solid var(--jy-bg-light);
    transition: background 0.15s ease;
}

.jy-phone-country-item:last-child {
    border-bottom: none;
}

.jy-phone-country-item:hover {
    background: var(--jy-bg-light);
}

.jy-phone-country-item__name {
    flex: 1;
}

.jy-phone-country-item__code {
    font-weight: 500;
    color: var(--jy-primary);
}

.jy-phone-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/* Checkbox */
.jy-form__checkbox-group {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: grid;
    gap: 14px;
}

.jy-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.jy-form__checkbox {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: var(--jy-primary);
    flex-shrink: 0;
}

.jy-form__checkbox-text {
    font-size: 14px;
    color: var(--jy-text);
    line-height: 1.5;
}

.jy-form__checkbox-count {
    color: var(--jy-primary);
    font-weight: 700;
    font-size: 13px;
    margin-left: 6px;
    white-space: nowrap;
}

.jy-form__file-input {
    display: block;
    width: 100%;
    border: 1px dashed var(--jy-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--jy-bg-light);
    box-sizing: border-box;
}

.jy-form__file-input--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.jy-form__photo-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border: 1px dashed var(--jy-border);
    border-radius: 8px;
    background: var(--jy-bg-light);
    color: var(--jy-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.jy-form__photo-trigger:hover,
.jy-form__photo-trigger:focus {
    outline: none;
    border-color: var(--jy-primary);
    background: #eef2ff;
}

.jy-form__file-help {
    margin: 10px 0 0;
    color: var(--jy-text-muted);
    font-size: 13px;
}

.jy-form__photo-preview {
    display: none;
    margin-top: 12px;
}

.jy-form__photo-preview.active {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--jy-bg-light);
    border-radius: 10px;
}

.jy-form__photo-preview img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--jy-white);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.jy-form__photo-preview span {
    font-size: 13px;
    color: var(--jy-text-light);
}

/* Hint */
.jy-form__hint {
    text-align: center;
}

.jy-form__hint p {
    font-size: 13px;
    color: var(--jy-text-muted);
    margin: 0;
}

.jy-form__hint a {
    color: var(--jy-primary);
    text-decoration: none;
}

.jy-form__hint a:hover {
    text-decoration: underline;
}

/* Submit Button */
.jy-form__submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--jy-primary) 0%, var(--jy-secondary) 100%);
    color: var(--jy-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.jy-form__submit:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.jy-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.jy-form__treaty-link {
    margin-top: 16px;
    text-align: center;
}

.jy-form__treaty-link p {
    margin: 0;
    font-size: 14px;
    color: var(--jy-text-light);
}

.jy-form__treaty-link a {
    color: var(--jy-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.jy-form__treaty-link a:hover {
    text-decoration: underline;
}

/* Supporter Wall */
.jy-supporter-wall {
    padding: 0 24px 16px;
}

.jy-supporter-wall__header {
    text-align: center;
    margin-bottom: 24px;
}

.jy-supporter-wall__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
}

.jy-supporter-wall__subtitle {
    margin: 0;
    color: var(--jy-text-light);
    font-size: 15px;
}

.jy-supporter-wall__grid {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.jy-supporter-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(56, 76, 114, 0.12);
    animation: jyFloatCard 6s ease-in-out infinite;
}

.jy-supporter-card:nth-child(2n) {
    animation-duration: 7.5s;
}

.jy-supporter-card:nth-child(3n) {
    animation-duration: 8.5s;
}

.jy-supporter-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jy-primary), var(--jy-secondary));
    color: var(--jy-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.jy-supporter-card__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.jy-supporter-card__content {
    min-width: 0;
}

.jy-supporter-card:has(.jy-supporter-card__affiliation) .jy-supporter-card__content {
    padding-right: 36px;
}

.jy-supporter-card__name {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.3;
}

.jy-supporter-card__meta {
    margin: 0 0 6px;
    color: var(--jy-text-muted);
    font-size: 12px;
}

.jy-supporter-card__affiliation {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.jy-supporter-card__affiliation--yja {
    background: rgba(56, 161, 105, 0.15);
    color: var(--jy-yja-color);
}

.jy-supporter-card__affiliation--yjp {
    background: rgba(221, 107, 32, 0.15);
    color: var(--jy-yjp-color);
}

.jy-supporter-card__bio,
.jy-supporter-card__reason {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--jy-text-light);
}

.jy-supporter-card__reason-expand summary {
    cursor: pointer;
    color: var(--jy-primary-dark);
    font-size: 13px;
    font-weight: 600;
}

.jy-supporter-card__reason-expand p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--jy-text-light);
}

.jy-supporter-wall__empty {
    margin: 0 auto;
    max-width: 580px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(102, 126, 234, 0.35);
    border-radius: 14px;
    padding: 18px;
}

@keyframes jyFloatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .jy-hero {
        padding: 40px 20px;
        margin-bottom: 32px;
    }

    .jy-hero__title {
        font-size: 32px;
    }

    .jy-hero__subtitle {
        font-size: 16px;
    }

    .jy-hero__tagline {
        font-size: 13px;
        padding: 10px 18px;
    }

    .jy-why {
        padding: 0 16px 32px;
    }

    .jy-why__title {
        font-size: 26px;
    }

    .jy-why__card {
        padding: 24px 20px;
    }

    .jy-form-section {
        padding: 12px 16px 8px;
    }

    .jy-form-container {
        padding: 32px 24px;
    }

    .jy-supporter-wall {
        padding: 0 16px 16px;
    }

    .jy-supporter-wall__title {
        font-size: 24px;
    }

    .jy-form-header__title {
        font-size: 24px;
    }

    .jy-wall-glimpse__cards {
        grid-template-columns: 1fr;
    }

    .jy-form__input,
    .jy-form__textarea,
    .jy-form__select,
    .jy-phone-selector {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .jy-hero__badges {
        gap: 10px;
    }

    .jy-hero__badge {
        padding: 6px 14px;
        font-size: 12px;
    }

    .jy-hero__title {
        font-size: 26px;
    }

    .jy-phone-container {
        flex-direction: column;
    }

    .jy-phone-country-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .jy-phone-selector {
        width: 100%;
    }

    .jy-form-container {
        padding: 24px 20px;
    }

    .jy-form__checkbox-group {
        padding: 16px;
    }
}
