/* Custom styles for the baptism form - integrated with main site theme */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    background: #ffffff;
    padding: 2rem;
}

h1 {
    color: #1a4f8c;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.intro-text {
    text-align: center;
    color: #757575;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #1a4f8c;
    border-bottom: 2px solid #dee2e6;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e9ecef;
    border-top: none;
}

.form-label {
    font-weight: 500;
    color: #333333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #1a4f8c;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.3);
    background-color: #fffef7;
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: #143a6b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-check-label {
    font-weight: normal;
    color: #333333;
    cursor: pointer;
}

.form-check-input {
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #1a4f8c;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: #1a4f8c;
    border-color: #1a4f8c;
    box-shadow: 0 0 0 0.15rem rgba(26, 79, 140, 0.25);
}

.form-check-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.15rem rgba(255, 215, 0, 0.3);
}

.form-check-input:hover:not(:checked) {
    border-color: #143a6b;
    background-color: #f8f9fa;
}

.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: #1a4f8c;
    border-color: #1a4f8c;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Success message styling */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Form section spacing */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section-title {
    color: #1a4f8c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

/* Required field indicator */
.required-field::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.btn-primary:hover {
    background-color: #143c6b;
    border-color: #143c6b;
}

/* Return to main site link */
.return-link {
    display: inline-block;
    margin: 20px 0;
    color: #1a4f8c;
    text-decoration: none;
}

.return-link:hover {
    color: #143c6b;
    text-decoration: underline;
}

/* Form field enhancements for better visibility */
.mb-3 {
    margin-bottom: 1.5rem !important;
    position: relative;
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
    color: #6c757d;
}

/* Input group styling for better visibility */
.input-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 0;
    border-right: none;
}

.input-group .form-control:first-child {
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* File input specific improvements */
.form-control[type="file"] {
    padding: 0.5rem;
    background-color: #ffffff;
    border: 2px dashed #1a4f8c;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.form-control[type="file"]:hover {
    background-color: #f8f9fa;
    border-color: #ffd700;
}

/* Select dropdown improvements */
.form-select {
    border: 2px solid #1a4f8c;
    border-radius: 8px;
    padding: 0.875rem 2.25rem 0.875rem 1rem;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.3);
    background-color: #fffef7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .row {
        margin-bottom: 10px;
    }
}

/* Form validation styles */
.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}