/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

/* Base container */
.pif-form {
    font-family: 'Nunito', sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f4fbf4;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Dark theme override */
.pif-form.pif-dark {
    background: #2e2e2e;
}

/* Grid layout */
.pif-sections-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .pif-sections-grid { grid-template-columns: 1fr; }
}

/* Section styling */
.pif-section {
    background: #e8f5f8;
    border: 2px solid #81c784; /* forest green border */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}
.pif-form.pif-dark .pif-section {
    background: #424242;
    border-color: #80cbc4;
}

/* Section title */
.pif-section h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: #2e7d32;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4), -1px -1px 2px rgba(0,0,0,0.2);
    border: none; /* remove any underline */
    padding-bottom: 0;
    position: relative;
}

/* Icon styling */
.pif-icon {
    display: inline-block;
    margin-right: 0.5rem;
    animation: bounceIcon 1s ease;
    font-size: 1.4em;
    vertical-align: middle;
}
@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* Dark theme title color */
.pif-form.pif-dark .pif-section h3 {
    color: #80cbc4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5), -1px -1px 2px rgba(255,255,255,0.2);
}

/* Field styling */
.pif-field {
    margin-bottom: 0.8rem;
}
.pif-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #2e2e2e;
}
.pif-form.pif-dark .pif-field label {
    color: #e0e0e0;
}
.pif-field input,
.pif-field textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pif-form.pif-dark .pif-field input,
.pif-form.pif-dark .pif-field textarea {
    background: #616161;
    color: #fff;
    border: 1px solid #757575;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.pif-field input:focus,
.pif-field textarea:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 8px rgba(30,144,255,0.4), inset 0 1px 3px rgba(0,0,0,0.06);
    outline: none;
}

/* Animated submit button */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.pif-form button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 900;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(-45deg, #2e7d32, #1e90ff, #56ccf2, #388e3c);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pif-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Success message */
.pif-success {
    margin: 1.2rem auto;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pif-form.pif-light .pif-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #2e7d32;
}
.pif-form.pif-dark .pif-success {
    background: #37474f;
    border-left: 4px solid #80cbc4;
    color: #cfd8dc;
}
