/* ===== POPUP FORM ===== */

.pf-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pf-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal container */

.pf-modal {
    display: grid;
    grid-template-columns: 46% 54%;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    border-radius: 20px;
    overflow: hidden;
    background: #1C1C1E;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
}

.pf-overlay.is-open .pf-modal {
    transform: translateY(0) scale(1);
}

/* Left image */

.pf-modal__img {
    position: relative;
    overflow: hidden;
}

.pf-modal__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-modal__img-logo {
    position: absolute;
    bottom: 32px;
    left: 32px;
    font-family: "CooperHewitt", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FF9626;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.pf-logo-tilde {
    color: rgba(255, 150, 38, 0.6);
}

.pf-logo-cursor {
    color: #FF9626;
    animation: pf-blink 1s step-end infinite;
}

@keyframes pf-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Right body */

.pf-modal__body {
    padding: 44px 48px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.pf-modal__body::-webkit-scrollbar {
    width: 4px;
}
.pf-modal__body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Close */

.pf-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.pf-close:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
}

/* Title */

.pf-title {
    font-family: "CooperHewitt", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 115%;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    margin: 0;
}

.pf-title--orange {
    color: #FF9626;
}

.pf-subtitle {
    font-family: "OpenSans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 155%;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Form layout */

.pf-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 18px;
}

.pf-field--check {
    margin-bottom: 20px;
    padding-bottom: 0;
}

.pf-field--check:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.pf-label {
    font-family: "OpenSans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.pf-field input[type="text"],
.pf-field input[type="email"] {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 8px 0 10px;
    font-family: "OpenSans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.pf-field input[type="text"]::placeholder,
.pf-field input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3);
}

.pf-field input[type="text"]:focus,
.pf-field input[type="email"]:focus {
    border-color: rgba(255,255,255,0.6);
}

.pf-field.has-error input {
    border-color: #E53535;
    color: #E53535;
}

/* Error messages */

.pf-error {
    position: absolute;
    bottom: -7px;
    left: 0;
    font-family: "OpenSans", sans-serif;
    font-size: 11px;
    color: #E53535;
    min-height: 14px;
}

/* Service chips */

.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pf-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: none;
    font-family: "OpenSans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.pf-chip:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.pf-chip.is-active {
    border-color: #FF9626;
    color: #FF9626;
    background: rgba(255,150,38,0.08);
}

/* Checkbox */

.pf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.pf-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-checkbox__box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pf-checkbox input:checked ~ .pf-checkbox__box {
    background: #FF9626;
    border-color: #FF9626;
}

.pf-checkbox__box::after {
    content: "";
    display: none;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.pf-checkbox input:checked ~ .pf-checkbox__box::after {
    display: block;
}

.pf-checkbox__label {
    font-family: "OpenSans", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 145%;
    color: rgba(255,255,255,0.65);
}

/* Submit button */

.pf-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 5px 5px 20px;
    border-radius: 100px;
    border: none;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-family: "OpenSans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
    gap: 12px;
}

.pf-submit:hover {
    background: #f0f0f0;
}

.pf-submit__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pf-submit:hover .pf-submit__icon {
    background: #FF9626;
}

/* Status */

.pf-status {
    font-family: "OpenSans", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    min-height: 1em;
}

/* Responsive */

@media (max-width: 900px) {
    .pf-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .pf-modal__img {
        display: none;
    }

    .pf-modal__body {
        padding: 36px 28px 28px;
    }
}

@media (max-width: 600px) {
    .pf-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .pf-modal {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    .pf-modal__body {
        padding: 28px 20px 24px;
    }

    .pf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pf-title {
        font-size: 26px;
    }
}

/* ===== END POPUP FORM ===== */

/* ===== POPUP LETS BUILD ===== */

.lb-overlay {
    align-items: center;
}

.lb-modal {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 92vh;
    border-radius: 20px;
    overflow: hidden;
    background: #1C1C1E;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.lb-overlay.is-open .lb-modal {
    transform: translateY(0) scale(1);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.lb-body {
    padding: 48px 52px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    flex: 1;
}

.lb-body::-webkit-scrollbar { width: 4px; }
.lb-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.lb-title {
    font-family: "CooperHewitt", sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 112%;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    margin: 0;
    padding-right: 48px;
}

/* Form fields column */

.lb-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lb-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chip group rows */

.lb-field--chips {
    padding-bottom: 20px;
}

.lb-field--chips .pf-label {
    margin-bottom: 10px;
}

.lb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* File upload */

.lb-field--file {
    padding-bottom: 20px;
}

.lb-file-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 12px;
}

.lb-file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "OpenSans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #FF9626;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.lb-file-trigger:hover {
    opacity: 0.75;
}

.lb-file-hint {
    font-family: "OpenSans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 150%;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.lb-file-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "OpenSans", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    min-height: 30px;
}

.lb-file-name:empty {
    display: none;
}

.lb-file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.lb-file-remove:hover {
    color: #E53535;
}

/* Checkbox hint */

.lb-checkbox-hint {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Actions — two buttons */

.lb-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lb-submit--primary {
    flex: 1;
    min-width: 200px;
}

.lb-submit--secondary {
    flex: 1;
    min-width: 160px;
    padding: 9.5px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: none;
    color: #fff;
    font-family: "OpenSans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.lb-submit--secondary:hover {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
}

.pf-field.has-error {
    padding-bottom: 20px;
}

/* Responsive */

@media (max-width: 768px) {
    .lb-body {
        padding: 40px 24px 28px;
    }

    .lb-title {
        font-size: 30px;
        padding-right: 36px;
    }

    .lb-actions {
        flex-direction: column;
    }

    .lb-submit--primary,
    .lb-submit--secondary {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 480px) {
    .lb-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .lb-modal {
        border-radius: 20px 20px 0 0;
        max-height: 94vh;
    }
}

/* ===== END POPUP LETS BUILD ===== */
