/**
 * Complete Custom CSS for Joomla 5 Site with Cassiopeia Template
 * Norfolk Freemasons - Registration & Login System
 *
 * This file contains custom styles for header, navigation, forms,
 * RSForm! Pro integration, and Community Builder styling.
 */

/* ==========================================================================
   1. Header & Navigation Styles
   ========================================================================== */

/*
 * This is the definitive fix. We are overriding the template's core
 * background property directly on the header element. This tells Cassiopeia
 * to use a solid white background, removing any colors or gradients.
*/
.container-header {
    background: #ffffff !important;
}

/* Center the heading logo and brand text */
.navbar-brand {
    margin: auto;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

/* Center site description and set font color */
.container-header .site-description {
    color: black;
    white-space: normal;
    font-size: 1rem;
    text-align: center;
}

/* Set the main menu text font color to black */
.container-header .mod-menu {
    color: black;
}

/* Style the mobile hamburger menu icon */
.container-header .navbar-toggler {
    color: black;
    cursor: pointer;
}

/* ==========================================================================
   2. General Layout & Image Text Overlay Styles
   ========================================================================== */

/* Container for positioning text over images */
.site-grid .container {
    position: relative;
    text-align: center;
    color: black;
}

/* Position text in the bottom-left corner */
.bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
}

/* Position text in the top-left corner */
.top-left {
    position: absolute;
    top: 8px;
    left: 16px;
}

/* Position text in the top-right corner */
.top-right {
    position: absolute;
    top: 8px;
    right: 16px;
}

/* Position text in the bottom-right corner */
.bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
}

/* Position text directly in the center */
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   3. Community Builder Form Styles (CB Login, CB Registration, etc.)
   ========================================================================== */

/* --- Common CB Form Container Styling --- */
.cbLoginForm,
.cbRegistration,
.com_comprofiler form,
#cbcheckedadminForm {
    background-color: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* --- CB Login Form Elements --- */

/* Establish positioning context for icons inside input fields */
.cbLoginForm .input-group {
    position: relative !important;
}

/* Make the input field take up all available space, and add padding for the icon */
.cbLoginForm .input-group .form-control {
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 3rem !important; /* Space for the icon */
}

/* Position icons over the input field instead of next to it */
.cbLoginForm .input-group .input-group-text,
.cbLoginForm .input-group .input-password-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 3rem; /* Give it a fixed width to align icons */
    justify-content: center; /* Center the icon horizontally */
    z-index: 4 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Ensure the password toggle button doesn't look like a standard button */
.cbLoginForm .input-group .input-password-toggle {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure login buttons are the same full width and add spacing */
.cbLoginForm .mod-login__submit {
    margin-bottom: 10px !important;
}
.cbLoginForm .mod-login__submit .btn {
    width: 100% !important;
    box-sizing: border-box !important; /* Include padding and border in the element's total width */
    padding: 10px 24px !important; /* Match registration button padding */
    font-size: 16px !important; /* Match registration button font size */
}

/* --- CB Registration Form Elements --- */

/* Common styles for all screen sizes */
.com_comprofiler .cb_form_line,
.com_comprofiler .cbFieldIcons,
#cbcheckedadminForm .cb_form_line,
#cbcheckedadminForm .cbFieldIcons {
    display: block !important;
    width: auto !important;
    margin-bottom: 15px !important;
}

/* Checkboxes and radio buttons */
.com_comprofiler input[type="checkbox"],
.com_comprofiler input[type="radio"],
#cbcheckedadminForm input[type="checkbox"],
#cbcheckedadminForm input[type="radio"] {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Labels for checkboxes and radio buttons */
.com_comprofiler input[type="checkbox"] + label,
.com_comprofiler input[type="radio"] + label,
#cbcheckedadminForm input[type="checkbox"] + label,
#cbcheckedadminForm input[type="radio"] + label,
.com_comprofiler .cbSnglCtrlLbl label,
#cbcheckedadminForm .cbSnglCtrlLbl label {
    text-align: left !important;
    white-space: normal !important;
    width: auto !important;
    display: inline !important;
}

/* Submit buttons */
.com_comprofiler input[type="submit"],
.com_comprofiler button[type="submit"],
#cbcheckedadminForm input[type="submit"],
#cbcheckedadminForm button[type="submit"] {
    width: auto !important;
    padding: 10px 24px !important;
    margin-top: 15px !important;
    font-size: 16px !important;
}

/* Required field asterisks */
.com_comprofiler .cbStar,
#cbcheckedadminForm .cbStar {
    color: #cc0000 !important;
    margin-left: 3px !important;
}

/* Focus states for better accessibility */
.com_comprofiler input:focus,
.com_comprofiler select:focus,
.com_comprofiler textarea:focus,
#cbcheckedadminForm input:focus,
#cbcheckedadminForm select:focus,
#cbcheckedadminForm textarea:focus {
    border-color: #0066cc !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3) !important;
}

/* Special handling for checkbox containers */
.com_comprofiler .cbSnglCtrlLbl,
#cbcheckedadminForm .cbSnglCtrlLbl {
    display: inline-block !important;
    width: auto !important;
}

.com_comprofiler .cbSnglCtrlLbl input[type="checkbox"],
#cbcheckedadminForm .cbSnglCtrlLbl input[type="checkbox"] {
    float: left !important;
    margin-top: 2px !important;
}

.com_comprofiler .cbSnglCtrlLbl label,
#cbcheckedadminForm .cbSnglCtrlLbl label {
    display: inline-block !important;
    width: calc(100% - 30px) !important;
    vertical-align: top !important;
}

/* --- DESKTOP STYLES (768px and up) --- */
@media (min-width: 768px) {
    .cbLoginForm {
        max-width: 420px !important;
        margin: 60px auto !important;
        padding: 40px !important;
    }
    .cbRegistration,
    .com_comprofiler form,
    #cbcheckedadminForm {
        max-width: 650px !important;
        margin: 50px auto !important;
        padding: 40px !important;
    }

    .com_comprofiler label,
    #cbcheckedadminForm label,
    .cb_template_default label,
    .com_comprofiler .cb_form_line > label:first-child,
    #cbcheckedadminForm .cb_form_line > label:first-child,
    .com_comprofiler .control-label,
    #cbcheckedadminForm .control-label {
        display: inline-block !important;
        width: 180px !important;
        min-width: 180px !important;
        margin-right: 15px !important;
        text-align: left !important;
        vertical-align: top !important;
        padding-top: 5px !important;
        white-space: nowrap !important;
    }

    .com_comprofiler input[type="text"],
    .com_comprofiler input[type="password"],
    .com_comprofiler input[type="email"],
    #cbcheckedadminForm input[type="text"],
    #cbcheckedadminForm input[type="password"],
    #cbcheckedadminForm input[type="email"],
    .com_comprofiler select,
    #cbcheckedadminForm select,
    .com_comprofiler textarea,
    #cbcheckedadminForm textarea {
        width: 320px !important;
        max-width: 320px !important;
        display: inline-block !important;
    }

    .com_comprofiler .cbFieldIcons .cbFieldHint,
    #cbcheckedadminForm .cbFieldIcons .cbFieldHint,
    .com_comprofiler .cbValidationError,
    #cbcheckedadminForm .cbValidationError,
    .com_comprofiler .cbCaptcha,
    #cbcheckedadminForm .cbCaptcha {
        margin-left: 200px !important;
    }
}

/* --- TABLET STYLES (481px to 767px) --- */
@media (min-width: 481px) and (max-width: 767px) {
    .cbLoginForm {
        max-width: 420px !important;
        width: 90% !important;
        margin: 30px auto !important;
        padding: 25px !important;
    }
    .cbRegistration,
    .com_comprofiler form,
    #cbcheckedadminForm {
        max-width: 500px !important;
        width: 90% !important;
        margin: 30px auto !important;
        padding: 25px !important;
    }

    .com_comprofiler label,
    #cbcheckedadminForm label,
    .com_comprofiler .cb_form_line > label:first-child,
    #cbcheckedadminForm .cb_form_line > label:first-child,
    .com_comprofiler .control-label,
    #cbcheckedadminForm .control-label {
        width: 140px !important;
        min-width: 140px !important;
        margin-right: 10px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: top !important;
    }

    .com_comprofiler input[type="text"],
    .com_comprofiler input[type="password"],
    .com_comprofiler input[type="email"],
    #cbcheckedadminForm input[type="text"],
    #cbcheckedadminForm input[type="password"],
    #cbcheckedadminForm input[type="email"],
    .com_comprofiler select,
    #cbcheckedadminForm select {
        width: 250px !important;
        max-width: 100% !important;
    }
}

/* --- MOBILE STYLES (480px and below) --- */
@media (max-width: 480px) {
    /* CB Login & Registration Form */
    .cbLoginForm,
    .cbRegistration,
    .com_comprofiler form,
    #cbcheckedadminForm {
        width: 95% !important;
        margin: 20px auto !important;
        padding: 20px !important;
    }

    .com_comprofiler label,
    #cbcheckedadminForm label,
    .com_comprofiler .cb_form_line > label:first-child,
    #cbcheckedadminForm .cb_form_line > label:first-child,
    .com_comprofiler .control-label,
    #cbcheckedadminForm .control-label {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 5px !important;
        white-space: normal !important;
        padding-top: 0 !important;
    }

    .com_comprofiler input[type="text"],
    .com_comprofiler input[type="password"],
    .com_comprofiler input[type="email"],
    #cbcheckedadminForm input[type="text"],
    #cbcheckedadminForm input[type="password"],
    #cbcheckedadminForm input[type="email"],
    .com_comprofiler select,
    #cbcheckedadminForm select,
    .com_comprofiler textarea,
    #cbcheckedadminForm textarea {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .com_comprofiler .cbFieldIcons .cbFieldHint,
    #cbcheckedadminForm .cbFieldIcons .cbFieldHint,
    .com_o_comprofiler .cbValidationError,
    #cbcheckedadminForm .cbValidationError,
    .com_comprofiler .cbCaptcha,
    #cbcheckedadminForm .cbCaptcha {
        margin-left: 0 !important;
        margin-top: 5px !important;
        width: 100% !important;
    }

    .com_comprofiler input[type="submit"],
    .com_comprofiler button[type="submit"],
    #cbcheckedadminForm input[type="submit"],
    #cbcheckedadminForm button[type="submit"] {
        display: block !important;
        margin: 15px auto !important;
    }
}

/* ==========================================================================
   4. Miscellaneous Styles
   ========================================================================== */

/* Hides repeat exception fields in event components */
.ev_repeatexception {
    display: none !important;
}

/* Fix Remember Me checkbox from taking full width */
.form-group input[type="checkbox"] {
    width: 1em !important;
    max-width: 1em !important;
}

/* Fix checkbox positioning */
.form-check .form-check-input[type="checkbox"] {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 8px !important;
    position: relative !important;
}

/* ==========================================================================
   5. RSForm! Pro Integration Styles - Norfolk Freemasons Registration Form
   ========================================================================== */

/* Enhanced RSForm! Pro Styling for Norfolk Freemasons Registration Form */
/* Force center the RSForm with higher specificity */
.com_rsform .formResponsive {
    max-width: 1200px !important;
    margin: 2rem auto !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 27, 76, 0.1);
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 90% !important;
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
}

/* Reset any grid or flex positioning on the parent container */
.com_rsform .grid-child.container-component,
.com_rsform .container-component {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 2rem 1rem !important;
}

/* Ensure the form itself is inline-block for centering */
.com_rsform .container-component > main {
    display: inline-block !important;
    text-align: left !important;
    width: auto !important;
}

/* Form title */
.formResponsive h2 {
    color: var(--template-special-color, #001B4C);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}

.formResponsive h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #001B4C, #4A90E2);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Two-column layout enhancement */
.formContainer.formHorizontal .formRow {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.formSpan6 {
    flex: 1;
    min-width: 0;
}

/* Field grouping with subtle borders */
.formSpan6:first-child {
    border-right: 2px solid #f0f4fb;
    padding-right: 2rem;
}

/* Individual field blocks */
.rsform-block {
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
}

.rsform-block:hover {
    transform: translateY(-2px);
}

/* Labels */
.formControlLabel {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.formRequired {
    color: #e74c3c;
    margin-left: 4px;
}

/* Input fields */
.rsform-input-box,
.rsform-password-box,
.rsform-select-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.rsform-input-box:focus,
.rsform-password-box:focus,
.rsform-select-box:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: scale(1.02);
}

/* Multi-select styling */
select[multiple] {
    min-height: 120px;
    padding: 8px;
}

select[multiple] option {
    padding: 4px 8px;
    border-radius: 4px;
    margin: 1px 0;
}

select[multiple] option:checked {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

/* Submit button */
.rsform-submit-button {
    background: linear-gradient(135deg, #001B4C, #4A90E2);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 27, 76, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
}

.rsform-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 27, 76, 0.4);
    background: linear-gradient(135deg, #002654, #5ba0f2);
}

.rsform-submit-button:active {
    transform: translateY(0);
}

/* Form descriptions */
.formDescription {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
    font-style: italic;
}

/* Validation messages */
.formValidation {
    margin-top: 0.5rem;
}

.formNoError {
    display: none;
}

.formRed {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 1.5rem;
}

/* Section header styling */
.form-section-header {
    background: #f0f4fb;
    padding: 0.75rem 1rem;
    margin: 0 0 1.5rem 0;
    border-left: 4px solid #001B4C;
    font-weight: 600;
    color: #001B4C;
    font-size: 1rem;
    border-radius: 4px;
}

/* Hides the input box with the ID 'name' */
#name {
    display: none !important;
}

/* Hides the label associated with the 'name' input */
label[for="name"] {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .formContainer.formHorizontal .formRow {
        flex-direction: column;
        gap: 0;
    }
    
    .formSpan6:first-child {
        border-right: none;
        border-bottom: 2px solid #f0f4fb;
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .com_rsform .formResponsive {
        padding: 1.5rem !important;
        margin: 1rem auto !important;
        width: 95% !important;
    }
    
    .formResponsive h2 {
        font-size: 1.8rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .com_rsform .formResponsive {
        width: 98% !important;
        margin: 0.5rem auto !important;
        padding: 1rem !important;
    }
}

/* Enhanced focus states for accessibility */
.rsform-input-box:focus-visible,
.rsform-password-box:focus-visible,
.rsform-select-box:focus-visible,
.rsform-submit-button:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

.formBody {
    position: relative;
}

/* ==========================================================================
   6. HEADER PROTECTION - Ensure site header stays white
   ========================================================================== */

/* Ensure ONLY the site header background stays white - very specific selectors */
body > .site-grid > .container-header,
body > header.container-header,
.navbar.container-header {
    background: #ffffff !important;
}

/* ==========================================================================
   7. ENHANCED CB LOGIN FORM STYLES - Norfolk Freemasons Theme
   ========================================================================== */

/* CB Login Form Container Enhancement - Only target CB Login */
.cb_template .cbLoginForm,
div.cbLoginForm,
.mod-cblogin .cbLoginForm {
    max-width: 420px !important;
    margin: 2rem auto !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 27, 76, 0.1) !important;
    padding: 2rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* CB Login Input Fields - Only target CB Login inputs */
.cbLoginForm input[type="text"]:not(.rsform-input-box),
.cbLoginForm input[type="password"]:not(.rsform-password-box),
.cbLoginForm input[type="email"]:not(.rsform-input-box),
.cbLoginForm .form-control:not(.rsform-input-box) {
    width: 100% !important;
    padding: 12px 16px !important;
    padding-right: 3rem !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

/* CB Login Input Focus - Only target CB Login inputs */
.cbLoginForm input[type="text"]:not(.rsform-input-box):focus,
.cbLoginForm input[type="password"]:not(.rsform-password-box):focus,
.cbLoginForm input[type="email"]:not(.rsform-input-box):focus,
.cbLoginForm .form-control:not(.rsform-input-box):focus {
    outline: none !important;
    border-color: #4A90E2 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
    transform: scale(1.02) !important;
}

/* CB Login Button - Only target CB Login buttons */
.cbLoginForm .btn:not(.rsform-submit-button),
.cbLoginForm input[type="submit"]:not(.rsform-submit-button),
.cbLoginForm button[type="submit"]:not(.rsform-submit-button),
.cbLoginForm .mod-login__submit .btn:not(.rsform-submit-button) {
    background: linear-gradient(135deg, #001B4C, #4A90E2) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 25px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 27, 76, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0.5rem 0 !important;
}

.cbLoginForm .btn:not(.rsform-submit-button):hover,
.cbLoginForm input[type="submit"]:not(.rsform-submit-button):hover,
.cbLoginForm button[type="submit"]:not(.rsform-submit-button):hover,
.cbLoginForm .mod-login__submit .btn:not(.rsform-submit-button):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 27, 76, 0.4) !important;
    background: linear-gradient(135deg, #002654, #5ba0f2) !important;
}

/* CB Login Links - Only target CB Login links */
.cbLoginForm ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 0 !important;
    text-align: center !important;
}

.cbLoginForm ul li {
    margin: 0.75rem 0 !important;
    padding: 0 !important;
}

.cbLoginForm a,
.cbLoginForm .cbLoginLink {
    color: #4A90E2 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    position: relative !important;
}

.cbLoginForm a:hover,
.cbLoginForm .cbLoginLink:hover {
    color: #001B4C !important;
    text-decoration: underline !important;
}

/* Special styling for Registration link */
.cbLoginForm ul li:last-child a,
.cbLoginForm .cbLoginLink[href*="register"],
.cbLoginForm .cbLoginLink[href*="rsform"] {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd) !important;
    color: #001B4C !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    border: 2px solid #4A90E2 !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.cbLoginForm ul li:last-child a:hover,
.cbLoginForm .cbLoginLink[href*="register"]:hover,
.cbLoginForm .cbLoginLink[href*="rsform"]:hover {
    background: linear-gradient(135deg, #4A90E2, #001B4C) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 27, 76, 0.2) !important;
}
a.menu-item-colour {
  color: #224FAA;
}

/* CB Login Form Input Groups */
.cbLoginForm .input-group {
    position: relative !important;
    margin-bottom: 1.5rem !important;
}

.cbLoginForm .input-group .input-

/* ===== COMPLETE SITE CSS - Lodge Officers App + Norfolk Freemasons Homepage ===== */

/* Lodge Officers App CSS */
.lodge-officers-app {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.admin-login {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.admin-login h3 {
    color: #1a365d;
    margin-bottom: 15px;
}

.admin-login input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

.admin-login button {
    background: #3182ce;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

.admin-login button:hover {
    background: #2c5aa0;
}

.editor-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.editor-panel, .preview-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.editor-panel h2, .preview-panel h2 {
    color: #1a365d;
    margin-top: 0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d3748;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

.officer-editor {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8fafc;
}

.officer-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.officer-editor h4 {
    margin: 0;
    color: #2d3748;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-success {
    background-color: #38a169;
    color: white;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #3182ce;
    color: white;
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-secondary {
    background-color: #718096;
    color: white;
    float: right;
    margin-bottom: 10px;
}

.officer-inputs input[type="text"],
.officer-inputs input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 38px;
}

.officer-inputs input[type="email"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Preview Styles */
.lodge-container {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.lodge-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c5aa0;
}

.lodge-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.lodge-location {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.6;
}

.lodge-location a {
    color: #2c5aa0;
    text-decoration: none;
}

.lodge-schedule {
    font-style: italic;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
    white-space: pre-line;
}

.officers-section {
    margin-top: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.officers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.officer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #2c5aa0;
    min-height: 44px;
}

.officer-row:nth-child(even) {
    background-color: #edf2f7;
}

.officer-title {
    font-weight: bold;
    color: #2d3748;
    font-size: 16px;
    min-width: 80px;
    max-width: 180px;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    white-space: normal;
}

.officer-name {
    color: #1a365d;
    font-size: 16px;
    text-align: right;
    flex-grow: 1;
    margin-left: 20px;
}

.pm-designation {
    color: #718096;
    font-size: 14px;
}

.ppagstb-designation {
    color: #8b5cf6;
    font-size: 14px;
}

.founding-member {
    color: #d69e2e;
    font-weight: bold;
}

.admin-notice {
    background: #bee3f8;
    border: 1px solid #3182ce;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    color: #1a365d;
}

/* Hide elements based on mode */
.admin-login {
    display: none;
}

.editor-panel {
    display: none;
}

.view-only .editor-container {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.admin-mode .admin-login {
    display: none;
}

.admin-mode .editor-panel {
    display: block;
}

.show-login .admin-login {
    display: block;
}

/* Chapter-specific crimson styling */
.chapter-mode .lodge-header {
    border-bottom: 3px solid #dc143c;
}

.chapter-mode .editor-panel h2, 
.chapter-mode .preview-panel h2 {
    border-bottom: 2px solid #dc143c;
}

.chapter-mode .officer-row {
    border-left: 4px solid #dc143c;
}

.chapter-mode .lodge-location a {
    color: #dc143c;
}

.chapter-mode .admin-login button {
    background: #dc143c;
}

.chapter-mode .admin-login button:hover {
    background: #b91c3c;
}

.chapter-mode .btn-primary {
    background-color: #dc143c;
}

.chapter-mode .btn-primary:hover {
    background-color: #b91c3c;
}

.chapter-mode .admin-notice {
    background: #fce8e6;
    border: 1px solid #dc143c;
    color: #8b0000;
}

/* Lodge Officers App Mobile Styles */
@media (max-width: 768px) {
    .lodge-officers-app {
        padding: 5px;
    }
    
    .editor-container {
        grid-template-columns: 1fr;
        margin: 0;
        max-width: 100%;
    }
    
    .editor-panel, .preview-panel {
        margin: 0;
        padding: 10px;
    }
    
   .officer-inputs {
    display: grid;
    grid-template-columns: minmax(80px, 0.8fr) minmax(120px, 1fr) minmax(200px, 2.5fr) auto;
    gap: 10px;
    align-items: end;
}
    
    .officers-grid {
        grid-template-columns: 1fr;
    }
    
    .lodge-container {
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }
    
    /* Fix mobile officer row layout - ONLY for chapters */
    .chapter-mode .officer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 16px;
    }
    
    .chapter-mode .officer-title {
        max-width: 100%;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .chapter-mode .officer-name {
        text-align: left;
        margin-left: 0;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (min-width: 768px) {
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== NORFOLK FREEMASONS HOMEPAGE STYLES ===== */

/* Target Joomla article container and apply homepage styling */
.com-content-article__body .nf-homepage {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%) !important;
    margin: -20px !important;
    padding: 20px !important;
    min-height: 80vh;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
}

.com-content-article__body .nf-homepage * {
    box-sizing: border-box;
}

.com-content-article__body .nf-homepage .nf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.com-content-article__body .nf-homepage .nf-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 0;
}

.com-content-article__body .nf-homepage .nf-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
}

.com-content-article__body .nf-homepage .nf-header .nf-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    color: white;
}

.com-content-article__body .nf-homepage .nf-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.com-content-article__body .nf-homepage .nf-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.com-content-article__body .nf-homepage .nf-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.com-content-article__body .nf-homepage .nf-member-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
}

.com-content-article__body .nf-homepage .nf-visitor-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.com-content-article__body .nf-homepage .nf-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e3c72;
    font-weight: 400;
}

.com-content-article__body .nf-homepage .nf-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

/* Homepage buttons - specific naming to avoid conflicts */
.com-content-article__body .nf-homepage .nf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 44px;
    margin: 0 auto;
}

.com-content-article__body .nf-homepage .nf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white !important;
    text-decoration: none !important;
}

.com-content-article__body .nf-homepage .nf-options-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.com-content-article__body .nf-homepage .nf-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.com-content-article__body .nf-homepage .nf-option-content {
    text-align: left;
}

.com-content-article__body .nf-homepage .nf-option-content h3 {
    font-size: 1.6rem;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 400;
}

.com-content-article__body .nf-homepage .nf-option-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.com-content-article__body .nf-homepage .nf-option-image {
    text-align: center;
    position: relative;
}

.com-content-article__body .nf-homepage .nf-masonic-symbol {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
    background-image: url('/images/SiteImages/Craft.gif');
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center;
}

.com-content-article__body .nf-homepage .nf-masonic-symbol:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.4);
}

.com-content-article__body .nf-homepage .nf-chapter-symbol {
    background-image: url('/images/SiteImages/chapter.gif');
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center;
}

.com-content-article__body .nf-homepage .nf-footer {
    text-align: center;
    padding: 30px;
    color: white;
    opacity: 0.8;
}

.com-content-article__body .nf-homepage .nf-decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1e3c72, transparent);
    margin: 20px auto;
}

/* Homepage Mobile Responsive Design */
@media (max-width: 480px) {
    .com-content-article__body .nf-homepage .nf-container {
        padding: 10px;
    }
    
    .com-content-article__body .nf-homepage .nf-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .com-content-article__body .nf-homepage .nf-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .com-content-article__body .nf-homepage .nf-header .nf-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .com-content-article__body .nf-homepage .nf-main-content {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .com-content-article__body .nf-homepage .nf-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .com-content-article__body .nf-homepage .nf-card h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .com-content-article__body .nf-homepage .nf-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .com-content-article__body .nf-homepage .nf-btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .com-content-article__body .nf-homepage .nf-options-section {
        padding: 25px 15px;
        margin: 20px 5px;
    }
    
    .com-content-article__body .nf-homepage .nf-options-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .com-content-article__body .nf-homepage .nf-option-content {
        text-align: center;
        order: 2;
    }
    
    .com-content-article__body .nf-homepage .nf-option-image {
        order: 1;
    }
    
    .com-content-article__body .nf-homepage .nf-option-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .com-content-article__body .nf-homepage .nf-option-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .com-content-article__body .nf-homepage .nf-masonic-symbol {
        width: 100px;
        height: 100px;
    }
    
    .com-content-article__body .nf-homepage .nf-footer {
        padding: 20px 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .com-content-article__body .nf-homepage .nf-container {
        padding: 15px;
    }
    
    .com-content-article__body .nf-homepage .nf-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .com-content-article__body .nf-homepage .nf-header h1 {
        font-size: 2.2rem;
    }
    
    .com-content-article__body .nf-homepage .nf-header .nf-subtitle {
        font-size: 1.1rem;
    }
    
    .com-content-article__body .nf-homepage .nf-main-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .com-content-article__body .nf-homepage .nf-card {
        padding: 35px 25px;
    }
    
    .com-content-article__body .nf-homepage .nf-card h2 {
        font-size: 1.6rem;
    }
    
    .com-content-article__body .nf-homepage .nf-btn {
        padding: 14px 30px;
        font-size: 1.05rem;
    }
    
    .com-content-article__body .nf-homepage .nf-options-section {
        padding: 40px 25px;
    }
    
    .com-content-article__body .nf-homepage .nf-options-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .com-content-article__body .nf-homepage .nf-option-content {
        text-align: center;
    }
    
    .com-content-article__body .nf-homepage .nf-masonic-symbol {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .com-content-article__body .nf-homepage .nf-container {
        padding: 20px;
    }
    
    .com-content-article__body .nf-homepage .nf-main-content {
        gap: 35px;
    }
    
    .com-content-article__body .nf-homepage .nf-card {
        padding: 35px 30px;
    }
    
    .com-content-article__body .nf-homepage .nf-options-section {
        padding: 45px 35px;
    }
}

/* Homepage Animations */
.com-content-article__body .nf-homepage .nf-pulse {
    animation: nf-pulse 2s infinite;
}

@keyframes nf-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.com-content-article__body .nf-homepage .nf-fade-in {
    animation: nf-fadeIn 1.5s ease-in;
}

@keyframes nf-fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Mobile-first responsive centered logo for Cassiopeia template - PROPER FIX */

/* Target only the logo container, not the navbar */
.navbar-brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important;
    margin: 0 auto !important;
    position: relative !important;
}

.navbar-brand img {
    max-width: 80% !important;
    max-height: 45px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Don't interfere with navbar layout - only center logo within its space */
.container-header .navbar {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Small mobile devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        text-align: center !important;
        width: auto !important;
    }
    
    .navbar-brand img {
        max-width: 75% !important;
        max-height: 40px !important;
        margin: 0 auto !important;
    }
    
    .navbar-brand {
        padding: 8px 0 !important;
    }
}

/* Mobile devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .navbar-brand img {
        max-width: 70% !important;
        max-height: 50px !important;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .navbar-brand {
        padding: 12px 20px !important;
    }
    
    .navbar-brand img {
        max-width: none !important;
        max-height: 60px !important;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .navbar-brand img {
        max-height: 70px !important;
    }
    
    .navbar-brand {
        padding: 15px 25px !important;
    }
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
    .navbar-brand img {
        max-height: 80px !important;
    }
}

/* Extra adjustments for very small screens */
@media (max-width: 320px) {
    .navbar-brand img {
        max-width: 70% !important;
        max-height: 35px !important;
    }
}
/* Email cloaking styles */
.cloaked-email {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: #1976d2;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.cloaked-email:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chapter-mode .cloaked-email {
    color: #c62828;
}

.chapter-mode .cloaked-email:hover {
    background: #ffebee;
    border-color: #c62828;
}

/* Admin editor email input styling */
.officer-inputs input[type="text"],
.officer-inputs input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 38px;
}

.officer-inputs input[type="email"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}
/* ===== EMAIL MODAL ===== */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal iframe {
    width: 700px;
    max-width: 95%;
    height: 700px;
    max-height: 90vh;
    border: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== EMAIL FORM (inside iframe) ===== */
.email-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.email-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.email-form h2 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 10px;
}

.email-form .form-group {
    margin-bottom: 20px;
}

.email-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.email-form .form-group .required {
    color: #d32f2f;
}

.email-form .form-group input[type="text"],
.email-form .form-group input[type="email"],
.email-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.email-form .form-group textarea {
    height: 150px;
    resize: vertical;
}

.email-form .form-group input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.email-form .form-group input:focus,
.email-form .form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.email-form .alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.email-form .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.email-form .alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.email-form .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.email-form .btn-primary {
    background: #1976d2;
    color: white;
}

.email-form .btn-primary:hover {
    background: #1565c0;
}

.email-form .btn-primary:disabled {
    background: #90caf9;
    cursor: not-allowed;
}

.email-form .btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

.email-form .btn-secondary:hover {
    background: #5a6268;
}

.email-form .form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .email-modal iframe {
        width: 95%;
        height: 85vh;
    }
    
    .email-form {
        padding: 20px;
    }
    
    .email-form .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .email-form .btn-primary {
        width: 100%;
    }
}