/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('/assets/img/background.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    padding-top: 30px;
    padding-bottom: 0;
    position: relative;
}

/* Logo */
.logo-container {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
}

.logo {
    width: 120px;
    height: auto;
    padding: 15px;
}

/* Betlehem Image */
.betlehem-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.betlehem-image {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 15px;
}

/* Content Card */
.content-card {
    background: rgba(209, 213, 219, 0.95);
    border-radius: 30px;
    padding: 60px 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* Title */
.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 30px;
}

/* Subtitle */
.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 30px;
}

/* Description */
.description {
    font-size: 1.1rem;
    color: #1e3a5f;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Form Styles */
.form-label {
    font-size: 0.95rem;
    color: #1e3a5f;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
    outline: none;
}

/* Image Preview */
.image-preview-container {
    border: 2px dashed #1e3a5f;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
}

.preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Submit Button */
.btn-submit {
    background: #e91e63;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 50px;
    border-radius: 25px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.custom-checkbox .form-check-input {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 2px solid #1e3a5f;
    border-radius: 6px;
    margin-right: 15px;
    margin-top: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox .form-check-input:checked {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
    outline: none;
}

.custom-checkbox .form-check-label {
    font-size: 0.9rem;
    color: #1e3a5f;
    line-height: 1.5;
    cursor: pointer;
    padding-top: 3px;
}

.custom-checkbox .form-check-label strong {
    font-weight: 600;
}

.custom-checkbox .form-check-label a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-checkbox .form-check-label a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-success .alert-heading {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 600;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-danger strong {
    font-weight: 600;
}

/* Form Container */
#formContainer {
    transition: all 0.3s ease;
}

/* Footer Image */
.footer-image {
    width: 100%;
    margin-top: 60px;
    position: relative;
    z-index: 50;
    min-height: 300px;
    max-height: 300px;
    background-image: url('/assets/img/footer_infinite.webp');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.footer-image img {
    max-width: 100%;
    min-height: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 51;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-card {
        padding: 40px 30px;
        margin-top: 40px;
    }

    .title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1rem;
        text-align: left;
    }

    .logo-container {
        top: 20px;
        left: 20px;
    }

    .logo {
        width: 60px;
        padding: 10px;
    }

    .main-container {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .footer-image {
        margin-top: 40px;
    }

    .custom-checkbox .form-check-input {
        width: 25px;
        height: 25px;
        min-width: 25px;
    }

    .custom-checkbox .form-check-label {
        font-size: 0.85rem;
    }

    /* Checkboxes először mobilon */
    .content-card .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .content-card .row>div {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 2rem;
    }

    .content-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .main-container {
        padding-bottom: 0;
    }

    .footer-image {
        margin-top: 30px;
    }
}