/*=============================================
  Crown IT Experts – custom additions
  (quote modal + UK cookie consent banner)
=============================================*/

/* ---------- Quote / Inquiry Modal ---------- */
.crown-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 83, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.crown-modal-overlay.is-open {
    display: flex;
    animation: crownFadeIn 0.25s ease both;
}

@keyframes crownFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crown-modal {
    background: #ffffff;
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    margin: auto;
    box-shadow: 0 24px 64px rgba(6, 17, 83, 0.35);
    animation: crownSlideUp 0.3s ease both;
}

@keyframes crownSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .crown-modal-overlay.is-open,
    .crown-modal {
        animation: none;
    }
}

.crown-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f4ff;
    color: #061153;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.crown-modal__close:hover,
.crown-modal__close:focus-visible {
    background: #1053f3;
    color: #ffffff;
}

.crown-modal__title {
    font-size: 26px;
    color: #061153;
    margin-bottom: 6px;
}

.crown-modal__subtitle {
    color: #5b6486;
    margin-bottom: 24px;
}

.crown-modal .crown-field {
    margin-bottom: 16px;
}

.crown-modal label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #061153;
    margin-bottom: 6px;
}

.crown-modal input,
.crown-modal select,
.crown-modal textarea {
    width: 100%;
    border: 1px solid #dde3f5;
    border-radius: 10px;
    background: #f8faff;
    padding: 13px 16px;
    font-size: 15px;
    color: #061153;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crown-modal input:focus,
.crown-modal select:focus,
.crown-modal textarea:focus {
    outline: none;
    border-color: #1053f3;
    box-shadow: 0 0 0 3px rgba(16, 83, 243, 0.15);
}

.crown-modal textarea {
    min-height: 110px;
    resize: vertical;
}

.crown-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.crown-modal__submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #1053f3;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.crown-modal__submit:hover,
.crown-modal__submit:focus-visible {
    background: #061153;
    transform: translateY(-2px);
}

.crown-modal__submit[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.crown-form-note {
    font-size: 12.5px;
    color: #8a91ad;
    margin: 12px 0 0;
    text-align: center;
}

.crown-form-success {
    text-align: center;
    padding: 30px 10px;
}

.crown-form-success .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f9ef;
    color: #19b563;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crown-form-success h4 {
    color: #061153;
    margin-bottom: 8px;
}

.crown-form-success p {
    color: #5b6486;
    margin: 0;
}

.crown-form-error {
    background: #fdecec;
    color: #c0392b;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 575px) {
    .crown-modal {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .crown-modal__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Cookie Consent Banner (UK GDPR / PECR) ---------- */
.crown-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    margin: 0 auto;
    max-width: 680px;
    background: #ffffff;
    border: 1px solid #e2e8fa;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(6, 17, 83, 0.25);
    padding: 24px 28px;
    z-index: 99980;
    display: none;
}

.crown-cookie-banner.is-visible {
    display: block;
    animation: crownSlideUp 0.35s ease both;
}

.crown-cookie-banner h4 {
    font-size: 18px;
    color: #061153;
    margin-bottom: 8px;
}

.crown-cookie-banner p {
    font-size: 14px;
    color: #5b6486;
    margin-bottom: 14px;
    line-height: 1.6;
}

.crown-cookie-banner .crown-cookie-more {
    display: none;
    background: #f8faff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.crown-cookie-banner .crown-cookie-more.is-open {
    display: block;
}

.crown-cookie-banner .crown-cookie-more p {
    margin-bottom: 6px;
    font-size: 13px;
}

.crown-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.crown-cookie-actions button {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.crown-cookie-accept {
    border: none;
    background: #1053f3;
    color: #ffffff;
}

.crown-cookie-accept:hover,
.crown-cookie-accept:focus-visible {
    background: #061153;
}

.crown-cookie-reject {
    border: 1px solid #cdd6f1;
    background: #ffffff;
    color: #061153;
}

.crown-cookie-reject:hover,
.crown-cookie-reject:focus-visible {
    background: #f1f4ff;
}

.crown-cookie-details-toggle {
    border: none;
    background: transparent;
    color: #1053f3;
    text-decoration: underline;
    font-size: 13.5px;
    padding: 6px 4px;
}

@media (max-width: 575px) {
    .crown-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }

    .crown-cookie-actions button {
        flex: 1 1 auto;
    }
}

/* ---------- Legal pages (privacy / terms / refund) ---------- */
.legal-content h3 {
    color: #061153;
    font-size: 22px;
}

.legal-content p,
.legal-content li {
    color: #5b6486;
    line-height: 1.75;
}

.legal-content ul.list-style-1 li {
    margin-bottom: 10px;
}

.legal-content a {
    color: #1053f3;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #061153;
}
