/* DNS Protection Checker v2 - Altern8 / Jupiter Theme */

/* ===== WRAPPER ===== */
.dpc-wrapper {
    max-width: 740px !important;
    margin: 50px auto 60px !important;
    padding: 0 20px !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

/* ===== INTRO ===== */
.dpc-intro {
    margin-bottom: 35px;
    text-align: center;
}

.dpc-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 34px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #182140 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dpc-title span { color: #e43117; }

.dpc-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #4d4d4d !important;
    margin: 0 auto 20px !important;
    max-width: 600px;
    text-align: center !important;
}
.dpc-description a {
    color: #e43117;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.dpc-description a:hover { border-bottom-color: #e43117; }

.dpc-accent-line {
    width: 60px;
    height: 3px;
    background: #e43117;
    margin: 0 auto;
}

/* ===== LAUNCH AREA ===== */
.dpc-launch-area {
    margin: 35px 0 40px;
    text-align: center;
}

.dpc-button {
    padding: 15px 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #e43117;
    border: 2px solid #e43117;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dpc-button:hover {
    background: #fff;
    color: #e43117;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.dpc-button:disabled {
    background: #a3a3a3;
    border-color: #a3a3a3;
    color: #fff;
    cursor: not-allowed;
}

.dpc-button-big {
    padding: 20px 50px;
    font-size: 16px;
    letter-spacing: 2px;
    box-shadow: 0 6px 25px rgba(228,49,23,0.3);
}
.dpc-button-big:hover {
    box-shadow: 0 10px 35px rgba(228,49,23,0.15);
}

.dpc-hint {
    margin: 18px 0 0;
    font-size: 14px;
    color: #a3a3a3;
    text-align: center;
}

/* ===== HOW IT WORKS ===== */
.dpc-how-it-works {
    margin: 0 auto 30px;
    max-width: 640px;
}
.dpc-how-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #182140 !important;
    margin: 0 0 20px !important;
    text-align: center !important;
}
.dpc-how-steps {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.dpc-how-step {
    flex: 1;
    text-align: center;
    padding: 15px;
}
.dpc-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e43117;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 10px;
}
.dpc-how-step p {
    font-size: 13px;
    color: #4d4d4d;
    line-height: 1.6;
    margin: 0;
}

/* ===== PROGRESS (testing step) ===== */
.dpc-test-progress {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.dpc-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    border-left: 4px solid #ededed;
    transition: border-color 0.3s, background 0.3s;
}
.dpc-progress-label {
    font-weight: 700;
    font-size: 14px;
    color: #182140;
}
.dpc-progress-status {
    font-size: 13px;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpc-row-ok {
    border-left-color: #16a34a;
    background: #f0fdf4;
}
.dpc-row-ok .dpc-progress-status { color: #16a34a; font-weight: 700; }

.dpc-row-fail {
    border-left-color: #e43117;
    background: #fef2f2;
}
.dpc-row-fail .dpc-progress-status { color: #e43117; font-weight: 700; }

.dpc-row-skip {
    border-left-color: #a3a3a3;
}
.dpc-row-skip .dpc-progress-status { color: #a3a3a3; }

/* Small spinner */
.dpc-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ededed;
    border-top-color: #e43117;
    border-radius: 50%;
    animation: dpc-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes dpc-spin { to { transform: rotate(360deg); } }

/* ===== RESULTS ===== */
.dpc-results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.dpc-grade-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Comfortaa', 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.dpc-grade-a { background: #16a34a; }
.dpc-grade-b { background: #65a30d; }
.dpc-grade-c { background: #ea580c; }
.dpc-grade-d { background: #e43117; }

.dpc-grade-info {
    max-width: 400px;
}
.dpc-results-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 20px !important;
    color: #182140 !important;
    margin: 0 0 6px !important;
    font-weight: 700 !important;
    text-align: left !important;
}
.dpc-results-title strong { color: #e43117; }

.dpc-grade-msg {
    font-size: 14px !important;
    color: #4d4d4d !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Results grid */
.dpc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.dpc-card {
    padding: 20px;
    background: #f7f7f7;
    border: none;
    border-left: 4px solid #ededed;
    transition: box-shadow 0.3s;
    text-align: left;
}
.dpc-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

.dpc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.dpc-card-header strong {
    font-family: 'Comfortaa', 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #182140;
}
.dpc-card-sub {
    display: block;
    font-size: 11px;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.dpc-card-status-label {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.dpc-card-ok .dpc-card-status-label { color: #16a34a; }
.dpc-card-fail .dpc-card-status-label { color: #e43117; }

.dpc-more-link {
    font-size: 13px;
    font-weight: 700;
    color: #e43117;
    text-decoration: none;
}
.dpc-more-link:hover { text-decoration: underline; }

/* Status icons */
.dpc-icon { font-size: 1.3rem; line-height: 1; }
.dpc-ok   { color: #16a34a; }
.dpc-warn { color: #ea580c; }
.dpc-fail { color: #e43117; }

/* Card accents */
.dpc-card-ok   { border-left-color: #16a34a; }
.dpc-card-fail { border-left-color: #e43117; }

/* Results actions */
.dpc-results-actions {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dpc-link-btn {
    background: none;
    border: none;
    color: #a3a3a3;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 10px;
    transition: color 0.2s;
}
.dpc-link-btn:hover { color: #e43117; }

/* ===== RGPD ===== */
.dpc-rgpd {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #a3a3a3 !important;
    margin: 12px auto 0 !important;
    max-width: 500px;
    text-align: center !important;
}
.dpc-rgpd a { color: #a3a3a3; text-decoration: underline; }
.dpc-rgpd a:hover { color: #e43117; }

/* ===== CONTACT FORM ===== */
.dpc-contact-form {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.dpc-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.dpc-input {
    flex: 1;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 16px;
    border: 2px solid #ededed;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
    color: #182140;
    background: #fff;
}
.dpc-input:focus { border-color: #e43117; }
.dpc-input::placeholder { color: #a3a3a3; }

.dpc-contact-fields .dpc-input {
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
}
.dpc-contact-btn {
    padding: 15px 40px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
}
.dpc-contact-success {
    padding: 25px;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}
.dpc-contact-error {
    padding: 12px 20px;
    margin-top: 10px;
    background: #fef2f2;
    color: #e43117;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
}

/* ===== FAQ ===== */
.dpc-faq {
    max-width: 700px;
    margin: 50px auto 0;
    text-align: left;
    border-top: 2px solid #ededed;
    padding-top: 35px;
}
.dpc-faq-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #182140 !important;
    text-align: center !important;
    margin: 0 0 20px !important;
}
.dpc-faq-item { border-bottom: 1px solid #ededed; }
.dpc-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #182140;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.dpc-faq-q:hover { color: #e43117; }
.dpc-faq-arrow {
    font-size: 14px;
    color: #a3a3a3;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.dpc-faq-item.open .dpc-faq-arrow { transform: rotate(180deg); }
.dpc-faq-a {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    padding: 0 !important;
    opacity: 0;
}
.dpc-faq-item.open .dpc-faq-a {
    max-height: 300px !important;
    padding: 0 0 16px !important;
    opacity: 1;
}
.dpc-faq-a p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #4d4d4d !important;
    margin: 0 !important;
}
.dpc-faq-a a { color: #e43117; text-decoration: none; font-weight: 600; }
.dpc-faq-a a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dpc-wrapper {
        margin: 30px auto 40px !important;
        padding: 0 15px !important;
    }
    .dpc-title { font-size: 24px !important; }
    .dpc-description { font-size: 14px !important; }
    .dpc-how-steps { flex-direction: column; gap: 12px; }
    .dpc-how-step { padding: 10px; }
    .dpc-button-big { padding: 16px 35px; font-size: 14px; letter-spacing: 1px; }
    .dpc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dpc-card { padding: 16px; }
    .dpc-card-header strong { font-size: 15px; }
    .dpc-results-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .dpc-results-title { text-align: center !important; }
    .dpc-grade-info { text-align: center; }
    .dpc-contact-btn { max-width: 100%; }
}

@media (max-width: 480px) {
    .dpc-title { font-size: 21px !important; }
    .dpc-wrapper { margin: 20px auto 30px !important; }
    .dpc-grade-circle { width: 65px; height: 65px; font-size: 28px; }
}
