.widerruf-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.widerruf-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #eaeaea;
}

.widerruf-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #a73851;
    padding-bottom: 10px;
}

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

.widerruf-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

.widerruf-form input[type="text"],
.widerruf-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    background-color: #eaeaea;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

.widerruf-form input[type="text"]:focus,
.widerruf-form textarea:focus {
    outline: none;
    border-color: #a73851;
    background-color: #fff;
}

.widerruf-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.widerruf-form .form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.form-checkbox-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.form-checkbox-section input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.1);
    accent-color: #a73851;
}

.form-checkbox-section label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
}

.form-checkbox-section a {
    color: #a73851;
    text-decoration: underline;
}

.btn-submit {
    background-color: #a73851;
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #892c42;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
    font-family: inherit;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.prevMonthDay.selected, 
.flatpickr-day.nextMonthDay.selected {
    background: #a73851 !important;
    border-color: #a73851 !important;
    color: #fff !important;
}

.flatpickr-day:hover {
    background: #f5eef1 !important;
}

.flatpickr-months .flatpickr-month {
    color: #333;
    fill: #333;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #a73851;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #a73851;
}

.flatpickr-calendar .flatpickr-innerContainer {
    padding: 10px;
}

.widerruf-form input.datepicker {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a73851' class='bi bi-calendar3' viewBox='0 0 16 16'%3E%3Cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z'/%3E%3Cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px !important;
}

/* New Inline Validation CSS Styles */
.invalid-feedback {
    display: block;
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.is-invalid {
    border-color: #d9534f !important;
    background-color: #fff1f0 !important;
}