/* Widerruf Page Styles */

/* Page Header */
.wr-header {
    padding: 10rem 0 4rem 0;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #fef3c7 100%);
}

.wr-header-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--orange-600);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--orange-700);
}

.breadcrumb .separator {
    color: var(--gray-400);
}

.wr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #bbf7d0;
}

.wr-badge i {
    width: 1rem;
    height: 1rem;
}

.wr-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .wr-title {
        font-size: 3.75rem;
    }
}

.wr-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Main Section */
.wr-section {
    padding: 4rem 0 6rem 0;
    background-color: var(--gray-50);
}

.wr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .wr-grid {
        grid-template-columns: 1fr 360px;
        gap: 4rem;
    }
}

/* Form Wrapper */
.wr-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Form Sections */
.wr-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange-100);
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.section-icon i {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--orange-600);
}

.form-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.form-section-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0.125rem 0 0 0;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.required {
    color: #ef4444;
}

.optional {
    color: var(--gray-400);
    font-weight: 400;
    font-size: 0.8125rem;
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: var(--white);
    color: var(--gray-900);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--orange-300);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* Declaration Block */
.wr-declaration {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--orange-500);
    border-radius: 0.5rem;
}

.declaration-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.declaration-icon i {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--orange-600);
}

.declaration-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.declaration-text p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
    accent-color: var(--orange-500);
}

.form-checkbox:focus {
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.privacy-link {
    color: var(--orange-600);
    text-decoration: underline;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: var(--orange-700);
}

/* Submit */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background-color: var(--orange-500);
    color: var(--white);
    border: none;
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    margin-top: 0.5rem;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-submit i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Info box */
.form-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #dbeafe;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.form-info i {
    width: 1.125rem;
    height: 1.125rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-info p {
    font-size: 0.875rem;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.5;
}

/* Messages */
.form-message {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.625rem;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-message i {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-message strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.form-message p,
.form-message ul {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.form-message-success {
    background-color: #dcfce7;
    border-left: 4px solid #16a34a;
    color: #166534;
}

.form-message-success i { color: #16a34a; }

.form-message-error {
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.form-message-error i { color: #dc2626; }

/* Rotating loader */
.rotating {
    animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Honeypot */
input[name="website"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* ======== SIDEBAR ======== */
.wr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: var(--white);
    padding: 1.75rem;
    border-radius: 0.875rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sidebar-card--highlight {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: #fed7aa;
}

.sidebar-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange-100);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-card-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--orange-600);
}

.sidebar-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
}

.sidebar-card-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Deadline progress */
.deadline-bar {
    margin-top: 0.75rem;
}

.deadline-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.deadline-days {
    color: var(--orange-600);
}

.deadline-progress {
    height: 8px;
    background-color: #fed7aa;
    border-radius: 9999px;
    overflow: hidden;
}

.deadline-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--orange-400), var(--orange-600));
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Process steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background-color: var(--orange-500);
    color: var(--white);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Address */
.address-block {
    margin-bottom: 1rem;
}

.address-line {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.address-line i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--orange-600);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.address-line strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.address-line p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

.shipping-note {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem;
    background-color: #fefce8;
    border-radius: 0.5rem;
    border: 1px solid #fde047;
}

.shipping-note i {
    width: 1.125rem;
    height: 1.125rem;
    color: #ca8a04;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.shipping-note p {
    font-size: 0.8125rem;
    color: #713f12;
    margin: 0;
    line-height: 1.5;
}

/* Contact links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.contact-link-item {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    padding: 0.875rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    transition: background-color 0.2s, border-color 0.2s;
}

.contact-link-item:hover {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.contact-link-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange-100);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-link-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--orange-600);
}

.contact-link-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.contact-link-item span {
    font-size: 0.875rem;
    color: var(--orange-600);
    font-weight: 500;
}

.sidebar-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
    .wr-header {
        padding: 8rem 0 3rem 0;
    }

    .wr-title {
        font-size: 2.25rem;
    }

    .wr-form-wrapper {
        padding: 1.75rem 1.25rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 1.25rem;
    }

    .form-message {
        padding: 1rem;
    }
}
