/* ============================================================
   PV Ortigas - Pinnacle Village Style
   Dark, minimal, modern church aesthetic
   ============================================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: #000;
    padding: 80px 24px 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.church-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #fff;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    width: 100%;
}

.form-intro {
    margin-bottom: 48px;
}

.back-btn {
    display: inline-block;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #fff;
}

.form-intro h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.form-intro p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.required {
    color: #c9a96e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group select {
    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='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input.error,
.form-group select.error {
    border-color: #c0392b;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 16px;
}

.hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #fff;
    color: #000;
    flex: 1;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 80px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: #fff;
}

.success-message h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
}

.success-message p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 300;
}

.success-sub {
    margin-top: 4px;
    margin-bottom: 32px;
}

.success-message .btn {
    display: inline-block;
    padding: 14px 36px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 30px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.app-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.app-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.app-footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .app-header {
        padding: 50px 20px 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .form-container {
        padding: 40px 20px 60px;
    }

    .form-intro h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* Data Privacy & Consent */
.consent-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.privacy-notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
}

.privacy-notice p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-notice p:last-of-type {
    margin-bottom: 0;
}

.privacy-notice ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.privacy-notice ul li {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    padding: 6px 0 6px 18px;
    position: relative;
}

.privacy-notice ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.privacy-notice strong {
    color: rgba(255, 255, 255, 0.75);
}

.privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: #fff;
}

/* Checkbox */
.consent-check {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #fff;
    cursor: pointer;
}

.checkbox-label a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-label a:hover {
    color: #fff;
}


/* Checkbox Grid for Multiple Ministries */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #fff;
    cursor: pointer;
}

@media (max-width: 600px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}
