/**
 * This file is part of the PHOENIX MEDIA GmbH Cancellation module which was created for DWD.
 *
 * @category    Phoenix
 * @package     Phoenix\Cancellation
 * @copyright   Copyright (c) 2025 PHOENIX MEDIA GmbH
 * @url         http://www.phoenix-media.eu
 */
.cancellation-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}
.form-section {
    margin-bottom: 20px;
}
.section-title {
    color: #2D4B9B;
    font-size: 1.4rem;
    border-bottom: 1px solid #555;
    padding-bottom: 3px;
    margin-bottom: 15px;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.form-col {
    padding: 0 10px;
    margin-bottom: 20px;
}
.col-half {
    flex: 0 0 50%;
    max-width: 50%;
}
.col-full {
    flex: 0 0 100%;
    max-width: 100%;
}
.form-group label {
    font-weight: bold;
}
.form-group label span.required {
    color: #E10019;
    margin-right: 5px;
}
.field-notice-icon {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    vertical-align: text-bottom;
}
.notice-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #2c4c9b;
    color: white;
    font-size: 11px;
}
.notice-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    margin-bottom: 5px;
    padding: 10px 15px;
    background: #2c4c9b;
    color: white;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    min-width: 200px;
    max-width: 350px;
    z-index: 1000;
}
.form-col:last-child .field-notice-icon .notice-tooltip,
.form-group:last-child .field-notice-icon .notice-tooltip {
    left: auto;
    right: 0;
    transform: translateX(46%);
}
.field-notice-icon:hover .notice-tooltip {
    left: 0;
    transform: translateX(0);
    margin-left: -10px;
    display: block;
}
.form-control,
input[type='text'].form-control,
input[type='email'].form-control,
input[type='number'].form-control,
input[type='tel'].form-control,
input[type='url'].form-control,
input[type='password'].form-control,
input[type='date'].form-control,
input[type='datetime-local'].form-control,
input[type='month'].form-control,
input[type='week'].form-control,
input[type='time'].form-control,
select.form-control,
textarea.form-control {
    width: 100%;
}
input[type='number'].form-control, input[type='date'].form-control {
    -moz-appearance: textfield;
    background-color: rgb(255, 255, 255);
    color: rgb(85, 85, 85);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(238, 238, 238);
    padding: 3px 6px;
}
select[multiple].form-control option {
    padding: 4px 8px;
}
select[multiple].form-control option:checked {
    background: #2D4B9B;
    color: white;
}
.checkbox-group,
.radio-group {
    padding: 8px 0;
}
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}
.checkbox-label input[type='checkbox'],
.radio-label input[type='radio'] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
input[type='checkbox'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #cbd5e0;
    background-color: #fff;
}
input[type='checkbox']:checked {
    background-color: #2D4B9B;
    border-color: #2D4B9B;
}
input[type='checkbox']:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}
label.checkbox-label, label.radio-label {
    font-weight: normal;
}
.notice-section {
    margin-top: 30px;
}
.notice-box {
    background: linear-gradient(135deg, #f6f9fc 0%, #f0f4f8 100%);
    border-left: 4px solid #2D4B9B;
    padding: 20px;
}
.form-text,
.note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}
.required-note {
    color: #E10019;
    margin-right: 5px;
    margin-top: 10px;
    text-align: left;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.btn-cancellation-form {
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    background-color: #F2F4F6;
    color: #2D4B9B;
    padding: 18px 20px;
    display: inline-block;
    min-width: 15%;
    text-align: center;
}
.btn-cancellation-form:hover {
    background-color: #2D4B9B;
    color: #fff;
    border-color: #fff;
    outline-color: #fff;
}
.notice-box h3 {
    color: #2d3748;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}
.notice-box ul {
    margin: 0;
    padding-left: 20px;
}
.notice-box li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .col-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .cancellation-form, .cancellation-header, .form-section.notice-section {
        padding: 0 20px;
    }
    .field-notice-icon {
        display: inline;
    }
    .btn-cancellation-form {
        width: 100%;
    }
}