/**
 * Parish Portal Frontend Styles
 */

.parish-portal-container {
    max-width: 500px;
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    
    /* Reset common theme overrides */
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Comprehensive theme protection */
.parish-portal-container,
.parish-portal-container * {
    box-sizing: border-box;
}

/* Reset heading styles within our container */
.parish-portal-container h1,
.parish-portal-container h2,
.parish-portal-container h3,
.parish-portal-container h4,
.parish-portal-container h5,
.parish-portal-container h6 {
    font-family: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Protect against responsive typography plugins */
.parish-portal-container [class*="responsive-typography"],
.parish-portal-container [class*="fusion-"],
.parish-portal-container [data-fontsize],
.parish-portal-container [data-lineheight] {
    font-family: inherit !important;
}

.parish-portal-tabs {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation */
.parish-portal-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.parish-portal-nav-section {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
}

/* Force horizontal layout even during Alpine.js transitions */
.parish-portal-nav > * {
    display: flex !important;
    width: 100% !important;
}

.parish-portal-nav [x-show] {
    display: flex !important;
    width: 100% !important;
}

/* Ensure only one nav section shows at a time */
.parish-portal-nav-section[style*="display: none"] {
    display: none !important;
}

.parish-portal-nav-section:not([style*="display: none"]) {
    display: flex !important;
}

/* Handle Alpine.js x-show states */
.parish-portal-nav-section[x-show][style*="display: block"],
.parish-portal-nav-section[x-show][style*="display: flex"] {
    display: flex !important;
    width: 100% !important;
}

.parish-portal-nav-section[x-show][style*="display: none"] {
    display: none !important;
}

.parish-portal-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.parish-portal-tab:hover {
    background: #e9ecef;
    color: #333;
}

.parish-portal-tab.active {
    background: #007cba;
    color: white;
    border-bottom: 3px solid #005a87;
}

.parish-portal-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Tab Content */
.parish-portal-content {
    padding: 30px;
}

.parish-portal-tab-content {
    display: none;
}

.parish-portal-tab-content.active {
    display: block;
}

/* Fade transitions for messages */
.parish-portal-message {
    transition: opacity 0.3s ease-in-out;
}

/* Loading state for buttons */
.parish-portal-submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Fallback styles when Alpine.js is not loaded */
.parish-portal-tab-content:not(.active) {
    display: none;
}

.parish-portal-tab-content.active {
    display: block;
}

/* Dashboard styles */
.parish-portal-dashboard {
    padding: 20px 0;
}

.parish-portal-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.parish-portal-welcome h3 {
    color: #333;
    margin-bottom: 10px;
}

.parish-portal-household-info,
.parish-portal-members {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.parish-portal-household-info h4,
.parish-portal-members h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.parish-portal-member-card {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.parish-portal-member-card h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.parish-portal-member-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.parish-portal-secondary {
    background: #666;
    color: white;
}

.parish-portal-secondary:hover {
    background: #555;
}

/* Dashboard Sub-Navigation */
.parish-portal-dashboard-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.parish-portal-dashboard-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.parish-portal-dashboard-tab:hover {
    background: #e9ecef;
    color: #333;
}

.parish-portal-dashboard-tab.active {
    background: #007cba;
    color: white;
    border-bottom: 3px solid #005a87;
}

.parish-portal-logout-tab {
    background: #dc3545;
    color: white;
}

.parish-portal-logout-tab:hover {
    background: #c82333;
}

.parish-portal-dashboard-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.parish-portal-dashboard-content {
    padding: 20px 0;
}

.parish-portal-dashboard-section {
    min-height: 300px;
}

/* Members Table */
.parish-portal-members-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Optimized column widths for simplified table */
.parish-portal-members-table th:nth-child(1),
.parish-portal-members-table td:nth-child(1) {
    width: 75%;
}

.parish-portal-members-table th:nth-child(2),
.parish-portal-members-table td:nth-child(2) {
    width: 25%;
    text-align: center;
}

.parish-portal-members-table th,
.parish-portal-members-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.parish-portal-members-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parish-portal-members-table td {
    color: #666;
    font-size: 14px;
}

.parish-portal-members-table tbody tr:hover {
    background: #f8f9fa;
}

.parish-portal-edit-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.parish-portal-edit-btn:hover {
    background: #005a87;
}

.parish-portal-edit-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.parish-portal-members-actions {
    margin-top: 20px;
    text-align: center;
}

/* Household Form */
.parish-portal-household-view h3,
.parish-portal-members-view h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.parish-portal-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parish-portal-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.parish-portal-field {
    margin-bottom: 20px;
}

.parish-portal-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.parish-portal-field input[type="text"],
.parish-portal-field input[type="email"],
.parish-portal-field input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parish-portal-field input[type="text"]:focus,
.parish-portal-field input[type="email"]:focus,
.parish-portal-field input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Password wrapper and toggle button */
.parish-portal-password-wrapper {
    position: relative;
    display: block;
}

.parish-portal-password-wrapper input {
    padding-right: 45px;
    width: 100%;
    display: block;
}

.parish-portal-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.parish-portal-password-toggle:hover {
    color: #007cba;
    background: rgba(0, 124, 186, 0.05);
}

.parish-portal-password-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.parish-portal-password-toggle:disabled:hover {
    color: #666;
    background: transparent;
}

.parish-portal-password-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.parish-portal-actions {
    margin-top: 25px;
    text-align: center;
}

.parish-portal-submit {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.parish-portal-submit:hover {
    background: #005a87;
}

.parish-portal-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.parish-portal-link {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 10px;
    transition: color 0.3s ease;
}

.parish-portal-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.parish-portal-field .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* Login instructions */
.parish-portal-login-instructions {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.parish-portal-login-instructions p {
    margin: 0 0 10px 0;
    color: #333;
}

.parish-portal-login-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.parish-portal-login-instructions li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

.parish-portal-login-instructions li:last-child {
    margin-bottom: 0;
}

.parish-portal-messages {
    margin-top: 20px;
}

.parish-portal-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.parish-portal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.parish-portal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.parish-portal-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.parish-portal-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Info boxes */
.parish-portal-forgot-password-info {
    margin-bottom: 20px;
}

.parish-portal-info-box {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.parish-portal-info-box p {
    margin: 0 0 10px 0;
}

.parish-portal-info-box p:last-child {
    margin-bottom: 0;
}

.parish-portal-info-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
}

.parish-portal-info-warning strong {
    color: #664d03;
}

.parish-portal-info-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

.parish-portal-info-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.parish-portal-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* Loading spinner */
.parish-portal-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: parish-portal-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes parish-portal-spin {
    to { transform: rotate(360deg); }
}

/* Member Form Styles */
.parish-portal-member-form-container {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.parish-portal-member-form {
    background: white;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.parish-portal-form-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parish-portal-form-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.parish-portal-close-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.parish-portal-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.parish-portal-close-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.parish-portal-member-form .parish-portal-form {
    padding: 20px;
}

.parish-portal-field .required {
    color: #d63384;
    font-weight: bold;
}

.parish-portal-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parish-portal-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.parish-portal-field input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parish-portal-field input[type="date"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.parish-portal-field input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parish-portal-field input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.parish-portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.parish-portal-actions .parish-portal-submit {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}

/* Form Sections */
.parish-portal-form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.parish-portal-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.parish-portal-section-title {
    margin: 0 0 15px 0 !important;
    color: #007cba !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Protect against theme-specific overrides */
.parish-portal-container .parish-portal-section-title,
.parish-portal-container h5.parish-portal-section-title {
    margin: 0 0 15px 0 !important;
    color: #007cba !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Override Fusion theme typography */
.parish-portal-container .parish-portal-section-title.fusion-responsive-typography-calculated,
.parish-portal-container h5.parish-portal-section-title.fusion-responsive-typography-calculated {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 0 15px 0 !important;
    color: #007cba !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Reset any inline styles that might be added by themes */
.parish-portal-container .parish-portal-section-title[style],
.parish-portal-container h5.parish-portal-section-title[style] {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 0 15px 0 !important;
    color: #007cba !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Field Rows */
.parish-portal-field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.parish-portal-field-half {
    flex: 1;
    margin-bottom: 0;
}

.parish-portal-field-full {
    flex: 1;
    width: 100%;
    margin-bottom: 0;
}

/* Sacrament Groups */
.parish-portal-sacrament-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

/* Class-based visibility control for sacrament details */
.parish-portal-sacrament-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: none; /* Default state: hidden */
}

/* Show sacrament details when corresponding checkbox is checked (modern browsers) */
.parish-portal-sacrament-group:has(input[name="baptised"]:checked) .parish-portal-sacrament-details,
.parish-portal-sacrament-group:has(input[name="first_communion"]:checked) .parish-portal-sacrament-details,
.parish-portal-sacrament-group:has(input[name="confirmed"]:checked) .parish-portal-sacrament-details,
.parish-portal-sacrament-group:has(input[name="married"]:checked) .parish-portal-sacrament-details {
    display: block !important;
}

/* Fallback: Class-based approach for better browser compatibility */
.parish-portal-sacrament-group.sacrament-checked .parish-portal-sacrament-details {
    display: block !important;
}

.parish-portal-sacrament-details.sacrament-details-visible {
    display: block !important; /* Show when explicitly marked visible */
}

.parish-portal-sacrament-details.sacrament-details-hidden {
    display: none !important; /* Force hide when explicitly marked hidden */
}

/* Emergency force-visible class with maximum specificity */
.parish-portal-sacrament-details.force-visible-sacrament {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
}

/* Certificate display styles */
.parish-portal-certificate-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

.parish-portal-certificate-file {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.parish-portal-file-icon {
    font-size: 16px;
}

.parish-portal-file-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 14px;
}

.parish-portal-file-date {
    color: #666;
    font-size: 12px;
}

.parish-portal-certificate-actions {
    display: flex;
    gap: 8px;
}

.parish-portal-btn {
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.parish-portal-btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.parish-portal-btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.parish-portal-btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.parish-portal-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.parish-portal-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin-bottom: 0;
}

.parish-portal-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    padding: 0;
}

/* Remember me checkbox field */
.parish-portal-checkbox-field {
    margin-bottom: 15px;
}

.parish-portal-checkbox-field .parish-portal-checkbox-label {
    font-weight: normal;
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.parish-portal-checkbox-field input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #007cba;
    cursor: pointer;
}

/* Certificate Upload Styles */
.certificate-upload-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.parish-portal-current-certificate {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.certificate-status {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #007cba;
    font-size: 14px;
}

.certificate-actions {
    display: flex;
    gap: 8px;
}

.parish-portal-cert-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.parish-portal-cert-download {
    background: #007cba;
    color: white;
}

.parish-portal-cert-download:hover {
    background: #005a87;
}

.parish-portal-cert-remove {
    background: #dc3545;
    color: white;
}

.parish-portal-cert-remove:hover {
    background: #c82333;
}

.parish-portal-cert-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.parish-portal-help-text {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-style: italic;
}

.parish-portal-certificate-upload {
    width: 100%;
    padding: 8px 12px;
    border: 2px dashed #007cba;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.parish-portal-certificate-upload:hover {
    background: #e9ecef;
    border-color: #005a87;
}

.parish-portal-certificate-upload:focus {
    outline: none;
    border-color: #005a87;
    background: #fff;
}

/* Responsive design */
@media (max-width: 600px) {
    .parish-portal-container {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .parish-portal-content {
        padding: 20px;
    }
    
    .parish-portal-tab {
        padding: 12px 10px;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .parish-portal-tab .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .parish-portal-member-form-container {
        padding: 15px;
    }
    
    .parish-portal-form-header {
        padding: 12px 15px;
    }
    
    .parish-portal-member-form .parish-portal-form {
        padding: 15px;
    }
    
    .parish-portal-actions {
        flex-direction: column;
    }
    
    .parish-portal-actions .parish-portal-submit {
        width: 100%;
    }
    
    .parish-portal-field-row {
        flex-direction: column;
        gap: 0;
    }
    
    .parish-portal-field-half {
        margin-bottom: 20px;
    }
    
    .parish-portal-sacrament-group {
        padding: 12px;
    }
    
    .parish-portal-form-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    /* Password toggle responsiveness */
    .parish-portal-password-toggle {
        padding: 0 10px;
    }
    
    .parish-portal-password-toggle .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .parish-portal-password-wrapper input {
        padding-right: 40px;
    }
}
