/* =============================================
   Contact / Request Info Page
   ============================================= */

/* ---- Hero ---- */
.contact-hero {
    background: linear-gradient(135deg, #1c0519 0%, #3d1138 50%, #76236d 100%);
    padding: 60px 0 55px;
}

.contact-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.contact-hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.contact-hero-reassurances {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-hero-reassurances li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-hero-reassurances li i {
    color: #c77dc0;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .contact-hero { padding: 45px 0 40px; }
    .contact-hero h1 { font-size: 1.85rem; }
}

/* ---- Body wrapper ---- */
.contact-body {
    padding: 60px 0 80px;
    background: #fff;
}

/* ---- Form sections ---- */
.cf-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.cf-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cf-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e !important;
    margin-bottom: 0.3rem;
}

.cf-section-hint {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.25rem;
}

/* ---- Product cards ---- */
.product-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: #fff;
    user-select: none;
}

.product-card:hover {
    border-color: #76236d;
    background: #fdf6fc;
    box-shadow: 0 2px 12px rgba(118, 35, 109, 0.08);
}

.product-card input[type="checkbox"] {
    display: none;
}

.product-card:has(input:checked) {
    border-color: #76236d;
    background: #fdf6fc;
    box-shadow: 0 2px 16px rgba(118, 35, 109, 0.12);
}

.product-card-icon {
    width: 44px;
    height: 44px;
    background: #f3e8f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #76236d;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.15s;
}

.product-card:has(input:checked) .product-card-icon {
    background: #76236d;
    color: #fff;
}

.product-card-body {
    flex: 1;
}

.product-card-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.product-card-body span {
    font-size: 0.825rem;
    color: #777;
}

.product-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.product-card:has(input:checked) .product-card-check {
    border-color: #76236d;
    background: #76236d;
    color: #fff;
}

/* ---- Request toggles ---- */
.request-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
    user-select: none;
}

.request-toggle:hover {
    border-color: #76236d;
    background: #fdf6fc;
}

.request-toggle:has(input:checked) {
    border-color: #76236d;
    background: #fdf6fc;
}

.request-toggle-icon {
    width: 44px;
    height: 44px;
    background: #f3e8f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #76236d;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.15s;
}

.request-toggle:has(input:checked) .request-toggle-icon {
    background: #76236d;
    color: #fff;
}

.request-toggle-body {
    flex: 1;
}

.request-toggle-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.request-toggle-body span {
    font-size: 0.825rem;
    color: #777;
}

/* Toggle switch visual */
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 46px;
    height: 26px;
    cursor: pointer;
    z-index: 1;
    margin: 0;
}

.toggle-track {
    display: block;
    width: 46px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    transition: background 0.2s;
    position: relative;
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: left 0.2s;
}

.toggle-switch input:checked ~ .toggle-track {
    background: #76236d;
}

.toggle-switch input:checked ~ .toggle-track::after {
    left: 23px;
}

/* ---- Form fields ---- */
.cf-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Override Django widget classes */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1.5px solid #d8d8d8;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a2e;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #76236d;
    box-shadow: 0 0 0 3px rgba(118, 35, 109, 0.12);
    background: #fff;
}

.cf-field-error {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

/* ---- Collapsible address ---- */
.cf-address-details {
    margin-top: 1.5rem;
}

.cf-address-summary {
    font-size: 0.9rem;
    font-weight: 600;
    color: #76236d;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed #ddd;
    user-select: none;
}

.cf-address-summary::-webkit-details-marker { display: none; }

.cf-address-summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.2s;
}

details[open] .cf-address-summary::after {
    transform: rotate(180deg);
}

.cf-address-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

/* ---- Submit section ---- */
.cf-section-submit {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.cf-captcha {
    margin-bottom: 1.5rem;
}

.btn-contact-submit {
    background: #76236d;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-contact-submit:hover {
    background: #5a1a53;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 35, 109, 0.35);
    color: #fff;
}

.cf-privacy-note {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-privacy-note i {
    color: #bbb;
}

/* ---- Sidebar ---- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-contact-block,
.sidebar-next-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px 28px;
}

.sidebar-contact-block h3,
.sidebar-next-steps h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e !important;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.sidebar-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sidebar-contact-list li > i {
    color: #76236d;
    font-size: 1rem;
    width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-contact-list .sidebar-contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sidebar-contact-list a {
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-contact-list a:hover {
    color: #76236d;
    text-decoration: underline;
}

.sidebar-contact-list address {
    font-style: normal;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

/* ---- Next steps ---- */
.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.next-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.next-step-num {
    width: 28px;
    height: 28px;
    background: #76236d;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.next-steps-list strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.next-steps-list p {
    font-size: 0.825rem;
    color: #777;
    margin: 0;
    line-height: 1.55;
}

/* ---- Map ---- */
.sidebar-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-map iframe {
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .contact-body { padding: 40px 0 60px; }
}

@media (max-width: 767px) {
    .product-card, .request-toggle { padding: 14px 15px; }
    .sidebar-contact-block, .sidebar-next-steps { padding: 22px 20px; }
}
