/* Root Variables for Colors */
:root {
    --primary-color: #c8102e;
    --accent-color: #ff4444;
    --hover-green: #4caf50;
    --text-color: #555;
    --background-color: #ffffff;
}

/* General Styles */
body {
    background-color: var(--background-color);
    font-family: 'Arial', sans-serif;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.header h1 {
    font-size: 2.5rem;
}

.header h2 {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Event Information */
.event-info,
.form-section {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.event-info h3,
label {
    color: var(--primary-color);
    font-weight: bold;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--background-color);
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Notes */
.note {
    font-style: italic;
    color: #666;
}

/* Images */
.event-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

/* Agreement Section */
.agreement-text {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--primary-color);
}

.agree-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* Custom Checkbox */
/*.custom-checkbox {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    cursor: pointer;*/
/*    position: relative;*/
/*    font-size: 16px;*/
/*}*/

/*.custom-checkbox input {*/
/*    position: absolute;*/
/*    opacity: 0;*/
/*    cursor: pointer;*/
/*}*/

/*.custom-checkbox .checkmark {*/
/*    position: relative;*/
/*    height: 20px;*/
/*    width: 20px;*/
/*    background-color: #ccc;*/
/*    border-radius: 4px;*/
/*    margin-right: 10px;*/
/*    transition: background-color 0.3s ease, transform 0.2s ease;*/
/*}*/

/*.custom-checkbox input:checked ~ .checkmark {*/
/*    background-color: var(--hover-green);*/
/*    transform: scale(1.1);*/
/*}*/

/*.custom-checkbox .checkmark:after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    display: none;*/
/*    left: 7px;*/
/*    top: 3px;*/
/*    width: 6px;*/
/*    height: 12px;*/
/*    border: solid white;*/
/*    border-width: 0 2px 2px 0;*/
/*    transform: rotate(45deg);*/
/*}*/

/*.custom-checkbox input:checked ~ .checkmark:after {*/
/*    display: block;*/
/*}*/

/*.custom-checkbox span {*/
/*    margin-left: 5px;*/
/*    color: var(--text-color);*/
/*}*/
/* Agreement Section Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    position: relative;
    font-size: 16px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #4caf50; /* Green for checked state */
    transform: scale(1.1);
}

.custom-checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Modal */
.modal-lg {
    max-width: 100%;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.modal {
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

/*.modal-content {*/
/*    margin: auto;*/
/*    width: auto;*/
/*}*/

/* Responsive Styles */
@media (max-width: 768px) {
    .event-image {
        max-width: 100%;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header h2 {
        font-size: 1rem;
    }
}
@media (max-width: 390px) {
    body {
        font-size: 14px; /* Reduce the overall text size */
    }

    .header h1 {
        font-size: 1.8rem; /* Smaller main header text */
    }

    .header h2 {
        font-size: 1.2rem; /* Smaller secondary header text */
    }

    .event-info h3,
    label {
        font-size: 1rem; /* Smaller form section headings */
    }

    .agreement-text,
    .custom-checkbox span {
        font-size: 0.9rem; /* Smaller checkbox and agreement text */
    }

    .footer {
        font-size: 0.8rem; /* Smaller footer text */
    }
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0); /* Transparent background */
}
