/**
 * NoCap Contact Pilot — "Connect with {founder}" block & request modals.
 *
 * Sits in the founder profile sidebar (desktop) where the old "Claim this
 * profile" banner used to be, and stays pinned on scroll.
 *
 * @package NoCap
 */

/* -------------------------------------------------------------------------
   01. CONNECT CARD
   ---------------------------------------------------------------------- */

.nocap-connect {
    display: block;
}

/* Integrated into the profile card: no inner box, just heading + actions. */

.nocap-connect-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--cosign-black, #09090b);
}

.nocap-connect-name {
    color: var(--cosign-black, #09090b);
}

/* Two options side by side, price baked into each button */

.nocap-connect-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.nocap-connect-note {
    font-size: 0.72rem;
    color: var(--cosign-muted, #71717a);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.45;
}

.nocap-connect-note strong {
    color: var(--cosign-black, #09090b);
}

.nocap-note-main {
    display: block;
}

.nocap-note-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.68rem;
}

.nocap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 11px;
    padding: 11px 14px;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Buttons in the connect row stack label + price and split the width evenly */

.nocap-connect-actions .nocap-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 10px 8px;
    text-align: center;
}

.nocap-btn-label {
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.2;
}

.nocap-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nocap-btn-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.nocap-btn-price {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0.72;
}

.nocap-btn-primary {
    background: var(--cosign-black, #09090b);
    color: #ffffff;
}

.nocap-btn-primary:hover {
    background: var(--yc-orange, #ff6600);
    color: #ffffff;
}

.nocap-btn-primary:hover .nocap-btn-price {
    opacity: 0.9;
}

.nocap-btn-secondary {
    background: #ffffff;
    color: var(--cosign-black, #09090b);
    border: 1.5px solid var(--cosign-black, #09090b);
}

.nocap-btn-secondary:hover {
    background: var(--cosign-black, #09090b);
    color: #ffffff;
}

.nocap-btn-secondary:hover .nocap-btn-price {
    opacity: 0.9;
}

.nocap-btn-arrow {
    transition: transform 0.18s ease;
}

.nocap-btn:hover .nocap-btn-arrow {
    transform: translateX(3px);
}

/* Verification landing notice */

.nocap-connect-notice {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.82rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

.nocap-connect-notice.is-success {
    background: var(--nocap-green-subtle, #f0fdf4);
    border: 1px solid var(--nocap-green-border, #bbf7d0);
    color: var(--nocap-green-hover, #15803d);
}

.nocap-connect-notice.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* -------------------------------------------------------------------------
   02. STICKY BEHAVIOUR (desktop)
   The Connect block pins itself while the rest of the profile scrolls.
   ---------------------------------------------------------------------- */

@media (min-width: 992px) {
    .founder-profile-sidebar.founder-card-header {
        position: static;
    }

    .nocap-connect {
        position: sticky;
        top: 76px;
        z-index: 30;
    }
}

@media (max-width: 991px) {
    .nocap-connect {
        margin: 18px 0;
    }
}

/* -------------------------------------------------------------------------
   03. MODALS
   ---------------------------------------------------------------------- */

.nocap-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nocap-modal.is-open {
    display: flex;
}

.nocap-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.nocap-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px 20px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
    animation: nocapModalIn 0.22s ease;
}

@keyframes nocapModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.nocap-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--cosign-light, #f4f4f5);
    color: #52525b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.nocap-modal-close:hover {
    background: var(--cosign-border, #e4e4e7);
    color: var(--cosign-black, #09090b);
}

.nocap-modal-eyebrow {
    display: inline-block;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--yc-orange, #ff6600);
    margin-bottom: 6px;
}

.nocap-modal-title {
    font-size: 1.3rem;
    font-weight: 750;
    margin: 0 0 6px;
    color: var(--cosign-black, #09090b);
}

.nocap-modal-sub {
    font-size: 0.9rem;
    color: var(--cosign-muted, #71717a);
    margin: 0 0 18px;
    line-height: 1.5;
}

.nocap-modal-fineprint {
    font-size: 0.7rem;
    color: #a1a1aa;
    text-align: center;
    margin: 14px 0 0;
}

.nocap-modal-disclaimer {
    font-size: 0.7rem;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.5;
    margin: 8px 0 0;
}

.nocap-modal-disclaimer strong {
    color: #52525b;
    font-weight: 600;
}

body.nocap-modal-open {
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   04. FORMS
   ---------------------------------------------------------------------- */

.nocap-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nocap-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nocap-field-row {
    display: flex;
    gap: 12px;
}

.nocap-field-row .nocap-field {
    flex: 1;
    min-width: 0;
}

.nocap-field-label {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--cosign-dark, #18181b);
}

.nocap-field-label em {
    color: var(--yc-orange, #ff6600);
    font-style: normal;
}

.nocap-optional {
    color: #a1a1aa;
    font-weight: 500;
}

.nocap-field input[type="text"],
.nocap-field input[type="email"],
.nocap-field input[type="date"],
.nocap-field textarea {
    width: 100%;
    border: 1px solid var(--cosign-border, #e4e4e7);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--cosign-black, #09090b);
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.nocap-field textarea {
    resize: vertical;
    min-height: 96px;
}

.nocap-field input:focus,
.nocap-field textarea:focus {
    outline: none;
    border-color: var(--yc-orange, #ff6600);
    box-shadow: 0 0 0 3px var(--yc-orange-glow, rgba(255, 102, 0, 0.18));
}

.nocap-field-hint {
    font-size: 0.74rem;
    color: #a1a1aa;
}

.nocap-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.8rem;
    color: #52525b;
    line-height: 1.45;
    cursor: pointer;
}

.nocap-consent input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex: none;
    accent-color: var(--yc-orange, #ff6600);
}

.nocap-consent a {
    color: var(--cosign-black, #09090b);
    text-decoration: underline;
}

.nocap-price-note {
    background: var(--yc-orange-subtle, #fff7ed);
    border: 1px solid var(--yc-orange-border, #fed7aa);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: #7c2d12;
    line-height: 1.5;
}

.nocap-price-note strong {
    color: #9a3412;
}

.nocap-submit {
    margin-top: 2px;
}

.nocap-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.nocap-form-feedback {
    margin: 0;
    font-size: 0.82rem;
}

.nocap-form-feedback.is-error {
    color: #dc2626;
}

.nocap-form-feedback.is-success {
    color: var(--nocap-green-hover, #15803d);
}

/* Success state */

.nocap-form-success {
    text-align: center;
    padding: 8px 4px 4px;
}

.nocap-form-success .nocap-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nocap-green-subtle, #f0fdf4);
    color: var(--nocap-green, #16a34a);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.nocap-form-success h4 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: var(--cosign-black, #09090b);
}

.nocap-form-success p {
    font-size: 0.88rem;
    color: var(--cosign-muted, #71717a);
    margin: 0;
    line-height: 1.55;
}

/* -------------------------------------------------------------------------
   05. RESPONSIVE
   ---------------------------------------------------------------------- */

@media (max-width: 560px) {
    .nocap-field-row {
        flex-direction: column;
        gap: 14px;
    }

    .nocap-modal {
        padding: 12px;
    }

    .nocap-modal-panel {
        padding: 22px 16px 16px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nocap-modal-panel {
        animation: none;
    }

    .nocap-btn,
    .nocap-btn-arrow {
        transition: none;
    }
}
