/* ============================================================
   Plug In Spaces — Forms Stylesheet
   ============================================================ */

/* ---------- Hero Banner ---------- */
.pis-form-hero {
    position: relative;
    padding: 80px 40px;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.pis-form-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,59,63,0.88) 0%, rgba(26,92,94,0.82) 100%);
    z-index: 1;
}

.pis-form-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-left: 60px;
}

.pis-form-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #20B35D;
    margin: 0 0 12px;
    line-height: 1.2;
}

.pis-form-hero__subtitle {
    font-size: 1.1rem;
    color: #20B35D;
    font-style: italic;
    opacity: 0.9;
    margin: 0 0 16px;
}

.pis-form-hero__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin: 0;
}

/* ---------- CTA / Prefer to talk ---------- */
.pis-form-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #1a3a3c 0%, #0d2b2d 100%);
    border-top: 1px solid rgba(32,179,93,0.2);
}

.pis-form-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pis-form-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.pis-form-cta__text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
}

.pis-form-cta__text a {
    color: #20B35D;
    font-weight: 700;
    text-decoration: none;
}

.pis-form-cta__text a:hover {
    text-decoration: underline;
}

/* ---------- Wrapper ---------- */
.pis-form-wrapper {
    padding: 40px 20px;
}

.pis-form-card {
    max-width: 780px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0d3b3f 0%, #1a5c5e 50%, #0d3b3f 100%);
    border-radius: 16px;
    padding: 45px 50px 50px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* ---------- Title ---------- */
.pis-form-title {
    text-align: center;
    color: #20B35D;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 30px;
}

/* ---------- Rows ---------- */
.pis-form-row {
    margin-bottom: 18px;
}

.pis-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Fields ---------- */
.pis-field {
    display: flex;
    flex-direction: column;
}

.pis-field--half {
    max-width: 50%;
}

.pis-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #20B35D;
    margin-bottom: 6px;
}

.pis-req {
    color: #e74c3c;
}

.pis-field input[type="text"],
.pis-field input[type="email"],
.pis-field input[type="tel"],
.pis-field input[type="date"],
.pis-field select,
.pis-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(32,179,93,0.4);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.pis-field input::placeholder,
.pis-field textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.pis-field input:focus,
.pis-field select:focus,
.pis-field textarea:focus {
    outline: none;
    border-color: #20B35D;
    background: rgba(255,255,255,0.12);
}

/* Select arrow color fix */
.pis-field select {
    appearance: auto;
    cursor: pointer;
}

.pis-field select option {
    background: #1a3a3c;
    color: #fff;
}

/* Textarea */
.pis-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Date input fix */
.pis-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* File input */
.pis-field input[type="file"] {
    padding: 10px;
    border: 1.5px dashed rgba(32,179,93,0.4);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.pis-field input[type="file"]:hover {
    border-color: #20B35D;
    background: rgba(255,255,255,0.08);
}

.pis-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin: 4px 0 0;
}

/* ---------- Radio / Checkbox ---------- */
.pis-radio-group {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 4px;
}

.pis-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
}

.pis-radio input[type="radio"] {
    accent-color: #20B35D;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pis-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 400 !important;
    font-size: 0.88rem !important;
    line-height: 1.5;
    cursor: pointer;
}

.pis-checkbox input[type="checkbox"] {
    accent-color: #20B35D;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ---------- Submit Button ---------- */
.pis-submit-btn {
    display: inline-block;
    background: #20B35D;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.pis-submit-btn:hover {
    background: #1a9a4f;
    transform: translateY(-1px);
}

.pis-submit-btn:active {
    transform: translateY(0);
}

.pis-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Messages ---------- */
.pis-form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.pis-form-message--success {
    background: rgba(32,179,93,0.15);
    border: 1px solid #20B35D;
    color: #20B35D;
}

.pis-form-message--error {
    background: rgba(231,76,60,0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ---------- Validation error state ---------- */
.pis-field--error input,
.pis-field--error textarea,
.pis-field--error select {
    border-color: #e74c3c !important;
}

.pis-field-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pis-form-hero {
        padding: 50px 20px;
        min-height: 200px;
    }

    .pis-form-hero__content {
        padding-left: 0;
    }

    .pis-form-hero__title {
        font-size: 1.8rem;
    }

    .pis-form-hero__subtitle {
        font-size: 1rem;
    }

    .pis-form-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .pis-form-card {
        padding: 30px 22px 35px;
        border-radius: 12px;
    }

    .pis-form-title {
        font-size: 1.5rem;
    }

    .pis-form-row--2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pis-form-row--2col .pis-field {
        margin-bottom: 18px;
    }

    .pis-form-row--2col .pis-field:last-child {
        margin-bottom: 0;
    }

    .pis-field--half {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .pis-form-hero {
        padding: 35px 16px;
    }

    .pis-form-hero__title {
        font-size: 1.5rem;
    }

    .pis-form-card {
        padding: 24px 16px 28px;
    }

    .pis-form-title {
        font-size: 1.3rem;
    }

    .pis-submit-btn {
        width: 100%;
        text-align: center;
    }
}
