/* Center Page Heading and Info Text */
.page-section {
    text-align: center;
}

/* Form Layout */
.modern-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left; /* Keep form fields cleanly aligned to the left */
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Input Styling */
.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Dark Mode Form Enhancements */
:root[data-theme="dark"] .modern-form {
    background: #282828;
    border: 1px solid #3a3a3a;
}

:root[data-theme="dark"] .modern-form input,
:root[data-theme="dark"] .modern-form textarea {
    background: #1a1a1a;
    border: 1px solid #4a4a4a;
}

/* Submission Button */
.submit-btn { 
    background: var(--primary-color); 
    color: #fff; border: none; padding: 12px 30px; border-radius: 25px; 
    cursor: pointer; font-size: 18px; font-family: 'Bree Serif', serif; 
    transition: all 0.3s ease; 
}

.submit-btn:hover {
    background: var(--accent-color);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Form Layout */
@media (max-width: 480px) {
    .modern-form {
        padding: 20px 15px; /* Reduce padding to save screen space */
    }
    
    /* Scale Google reCAPTCHA down on small screens */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left top;
    }
}

@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}