*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f5f7fa !important;
    color: #333;
}

header, header a {
    background: #ffffff;
    padding: 25px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2f4f2f;
    letter-spacing: -0.5px;
    text-decoration: none;
}

p{
    line-height: 2;
}

.main-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    list-style: none;
    margin: 0;
}

.main-nav .nav-links li {
    margin: 0;
    padding: 0;
}

.main-nav .nav-links a {
    text-decoration: none;
    color: #2f6b2f;
    font-weight: 600;
    font-size: 0.95rem;
}


.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 3px;
}

.image-card {
    align-self: flex-start;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    /*display: flex;*/
    width: fit-content;
    height: auto;
}

.image-card img {
    width: 100%;
    height: auto;        /* STOP distortion */
    object-fit: contain; /* Keeps full image visible */
    border-radius: 10px;
}

.text-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    padding: 35px;
    min-height: -webkit-fill-available;
}

.text-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #234423;
}

.text-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 15px 0;
}

.highlight {
    margin-top: 30px;
    background: #eef7ee;
    padding: 18px;
    border-left: 5px solid #2f6b2f;
    border-radius: 8px;
    font-weight: 600;
}

.price {
    color: #d60000;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 25px;
}

.limited {
    text-align: center;
    margin-top: 10px;
    color: #d60000;
    font-weight: 600;
}

/* Wrapper */
.holycard-wrapper {
    max-width: 360px;
    margin: 35px auto;
    text-align: center;
    font-family: "Inter", Arial, sans-serif;
}

/* Flip Buttons */
.flip-controls {
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    background: #3e6ae1;
    color: #fff;
    border: none;
    border-radius: 6px;
    margin: 0 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2953b8;
}

.holycard {
    width: 100%;
    perspective: 1000px;
}

.holycard-wrapper.holycard-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.9s ease;
    transform-style: preserve-3d;
}

.holycard-wrapper.holycard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.holycard-wrapper.holycard-front h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 14px;
}

.holycard-wrapper.holycard-back {
    transform: rotateY(180deg);
}

.holycard-wrapperh3 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: bold;
}

.holycard-wrapper.sub {
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

.holycard-wrapper.main-link {
    font-weight: bold;
    color: #3e6ae1;
    text-decoration: none;
}

.holycard-wrapper.main-link:hover {
    text-decoration: underline;
}

.holycard-wrapper.download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    color: #fff;
    background: #28a745;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.holycard-wrapper.download-btn:hover {
    background: #1e7e34;
}


.site-footer-modern {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    font-family: "Inter", sans-serif;
}

.footer-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-line-modern {
    margin: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    color: #4b5563;
}

.footer-line-modern a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s;
}

.footer-line-modern a:hover {
    color: #1d4ed8;
}

/* Form wrapper */
.registration-form-wrap {
    max-width: 100%;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.registration-form-wrap h2 {
    margin: 0 0 10px;
    color: #2f4f2f;
}

.registration-form-wrap .note {
    font-size: 0.9rem;
    color: #666;
}

.registration-form-wrap .required {
    color: red;
}

.registration-form-wrap .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.registration-form-wrap .form-row .form-group:last-child {
    grid-column: 1 / -1;
}

.registration-form-wrap .form-group {
    width: 100%;
}

.registration-form-wrap .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2f4f2f;
}

.registration-form-wrap input,
.registration-form-wrap textarea,
.registration-form-wrap select {
    width: 100%;
    display: block;
    padding: 10px 14px;
    border: 1px solid #ccd5df;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    background: #fafafa;
}

.registration-form-wrap textarea {
    resize: vertical;
    min-height: 60px;
}

.registration-form-wrap .radio-row {
    margin-top: 30px;
    padding: 15px;
    background: #f1f5f1;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    font-weight: 600;
}

.registration-form-wrap .radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.registration-form-wrap #parish-charity-section {
    margin-top: 25px;
}

.registration-form-wrap #home-parish-block,
.registration-form-wrap #charity-block {
    margin-bottom: 20px;
}

.registration-form-wrap .submit-wrap {
    text-align: center;
    margin-top: 35px;
}

.registration-form-wrap .submit-wrap button {
    background: #2f6b2f;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.registration-form-wrap .submit-wrap button:hover {
    background: #245524;
}

#custom-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
#custom-contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#custom-contact-form input,
#custom-contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#custom-contact-form #captcha-box{
    padding:8px 12px;
    background:#eee;
    font-weight:bold;
    letter-spacing:3px;
    font-size:18px;
    user-select:none;
}
#custom-contact-form #refresh-captcha{
    padding:6px 10px;
    cursor:pointer;
}
#custom-contact-form button[type="submit"] {
    padding: 10px 20px;
    background: #2f4f2f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#custom-contact-form button[type="submit"]:hover {
    background: #405c40;
}

.variables-form-wrap {
    max-width: 100%;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.variables-form-wrap h2 {
    margin: 0 0 10px;
    color: #2f4f2f;
}

.variables-form-wrap .note {
    font-size: 0.9rem;
    color: #666;
    line-height: 0;
}

.variables-form-wrap .required {
    color: red;
}

.variables-form-wrap .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.variables-form-wrap .form-group {
    width: 100%;
}

.variables-form-wrap .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2f4f2f;
}

.variables-form-wrap input,
.variables-form-wrap textarea,
.variables-form-wrap select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccd5df;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    background: #fafafa;
}

.variables-form-wrap textarea {
    resize: vertical;
    min-height: 60px;
}

.variables-form-wrap .submit-wrap {
    text-align: center;
    margin-top: 35px;
}

.variables-form-wrap .submit-wrap button {
    background: #2f6b2f;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.variables-form-wrap .submit-wrap button:hover {
    background: #245524;
}

.login-form-modern {
    width: 350px;
    margin: 40px auto;
    padding: 25px 30px;
    background: #fff;
    font-family: "Inter", sans-serif;
}

.login-form-modern .form-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.login-form-modern .form-group {
    margin-bottom: 18px;
}

.login-form-modern .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.login-form-modern .form-group .required {
    color: #e63946;
}

.login-form-modern .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .3s;
}

.login-form-modern .form-group input:focus {
    border-color: #4f46e5;
    outline: none;
}

.login-form-modern .btn-submit {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    border: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background .3s;
}

.login-form-modern .btn-submit:hover {
    background: #4338ca;
}

.checkout-form-card {
    max-width: 800px;
    margin: auto;
    /*background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);*/
    padding: 30px;
}

.checkout-form-card h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.checkout-form-card .subtitle {
    text-align: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 30px;
}

.checkout-form-card .price-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.checkout-form-card .price-row label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.checkout-form-card input[type="text"],
.checkout-form-card input[type="email"],
.checkout-form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.checkout-form-card input[readonly] {
    background: #f1f3f5;
}

.checkout-form-card input:focus,
.checkout-form-card textarea:focus {
    border-color: #0077cc;
    outline: none;
}

.checkout-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.checkout-form-card .form-group label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.checkout-form-card .required span {
    color: red;
}

.checkout-form-card .address {
    grid-column: 1 / -1;
}

.checkout-form-card .total-box {
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    font-size: 16px;
    margin-bottom: 30px;
}

.checkout-form-card .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #0077cc;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-form-card .submit-btn:hover {
    background: #005fa3;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.custom-modal-content {
    background: #fff;
    padding: 25px;
    width: 350px;
    max-width: 90%;
    margin: 120px auto;
    border-radius: 8px;
    position: relative;
}

.custom-modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 24px;
}

#attachment-btn-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

a.download-btn{
    background-color: #008000;
    padding: 10px;
    text-decoration: auto;
    color: #fff;
    border-radius: 10px;
}

a.download-btn:hover{
    background-color: #ff6600;
}

/* ================ SCHEDULE MODAL START =================== */
.schedule-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.schedule-modal-overlay .modal-content {
    background: #fff;
    width: 95%;
    max-width: 650px;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.schedule-modal-overlay .modal-close {
    position: absolute;
    right: -7px;
    top: -10px;
    font-size: 22px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 0px 6px 2px;
    background-color: #fff;
}

.schedule-modal-overlay #formSection {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.schedule-modal-overlay #formSection b {
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.schedule-modal-overlay #formSection input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 8px;
    font-size: 15px;
}

.schedule-modal-overlay #formSection input[type="submit"] {
    margin-top: 20px;
    width: 120px;
    height: 38px;
    background: linear-gradient(135deg, #008000, #008000);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.schedule-modal-overlay #scheduleForm {
    text-align: center;
}

.schedule-modal-overlay #resultSection {
    max-width: 900px;
    margin: auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 500px;
    overflow-y: auto;
}

.schedule-modal-overlay #resultSection h2 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

.schedule-modal-overlay #resultSection a {
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #008000;
    display: block;
    width: fit-content;
    margin: auto;
    margin-bottom: 20px;
    color: #fff;
    border-radius: 10px;
}

.schedule-modal-overlay #dates table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-modal-overlay #dates td {
    padding: 14px 16px;
    font-size: 15px;
    color: #34495e;
}

.schedule-modal-overlay #dates tr:nth-child(even) {
    background-color: #f6f9fc;
}

.schedule-modal-overlay #dates tr:nth-child(odd) {
    background-color: #ffffff;
}

.schedule-modal-overlay #dates td:nth-child(1) {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-modal-overlay #dates td:nth-child(2) {
    font-weight: 600;
    color: #27ae60;
}

.schedule-modal-overlay #dates td:empty {
    background: #fdfdfd;
}

/* ================ SCHEDULE MODAL END =================== */
    
@media (max-width: 480px) {
    .holycard-wrapper .holycard {
        height: 300px;
    }
    .footer-line-modern {
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    .schedule-modal-overlay #dates table,
    .schedule-modal-overlay #dates tr,
    .schedule-modal-overlay #dates td {
        display: block;
        width: 100%;
    }

    .schedule-modal-overlay #dates tr {
        margin-bottom: 12px;
    }
}

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

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