/**
 * Components Stylesheet
 *
 * Reusable component styles for the NDH theme.
 *
 * @package NursingDissertationHelp
 * @since   1.0.0
 */

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */

.ndh-pricing-card {
    background: var(--ndh-white);
    border: 1px solid var(--ndh-surface-border);
    border-radius: var(--ndh-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ndh-ease);
    position: relative;
}

.ndh-pricing-card--featured {
    border-color: var(--ndh-accent);
    box-shadow: 0 0 0 1px var(--ndh-accent);
}

.ndh-pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ndh-accent);
    color: var(--ndh-white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    border-radius: 100px;
}

.ndh-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ndh-shadow-lg);
}

.ndh-pricing__amount {
    font-family: var(--ndh-font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ndh-primary);
    margin: 1rem 0 0.25rem;
}

.ndh-pricing__period {
    font-size: 0.9375rem;
    color: var(--ndh-secondary);
}

.ndh-pricing__features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.ndh-pricing__features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--ndh-sidebar);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ndh-pricing__features li::before {
    content: '✓';
    color: var(--ndh-accent);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.ndh-faq-item {
    border: 1px solid var(--ndh-surface-border);
    border-radius: var(--ndh-radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--ndh-duration) var(--ndh-ease);
}

.ndh-faq-item.is-active {
    border-color: var(--ndh-accent);
}

.ndh-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--ndh-white);
    border: none;
    cursor: pointer;
    font-family: var(--ndh-font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ndh-primary);
    text-align: left;
    transition: background var(--ndh-duration) var(--ndh-ease);
}

.ndh-faq-item__question:hover {
    background: var(--ndh-surface-light);
}

.ndh-faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ndh-accent);
    transition: transform var(--ndh-duration) var(--ndh-ease);
}

.ndh-faq-item.is-active .ndh-faq-item__icon {
    transform: rotate(45deg);
}

.ndh-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ndh-ease);
}

.ndh-faq-item.is-active .ndh-faq-item__answer {
    max-height: 500px;
}

.ndh-faq-item__answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--ndh-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.ndh-contact-form {
    background: var(--ndh-white);
    border: 1px solid var(--ndh-surface-border);
    border-radius: var(--ndh-radius-xl);
    padding: 2.5rem;
}

.ndh-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .ndh-contact-form__row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.ndh-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--ndh-accent);
    color: var(--ndh-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--ndh-duration) var(--ndh-ease);
    box-shadow: var(--ndh-shadow-md);
    z-index: 999;
}

.ndh-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ndh-back-to-top:hover {
    background: var(--ndh-accent-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   ORDER FORM STEPS
   ========================================================================== */

.ndh-order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.ndh-order-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ndh-secondary);
}

.ndh-order-step.is-active {
    color: var(--ndh-accent);
}

.ndh-order-step.is-complete {
    color: var(--ndh-primary);
}

.ndh-order-step__number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--ndh-surface-border);
    font-size: 0.75rem;
    font-weight: 600;
}

.ndh-order-step.is-active .ndh-order-step__number {
    background: var(--ndh-accent);
    border-color: var(--ndh-accent);
    color: var(--ndh-white);
}

.ndh-order-step.is-complete .ndh-order-step__number {
    background: var(--ndh-primary);
    border-color: var(--ndh-primary);
    color: var(--ndh-white);
}

.ndh-order-step__connector {
    width: 40px;
    height: 2px;
    background: var(--ndh-surface-border);
}

/* ==========================================================================
   NOTIFICATION BAR
   ========================================================================== */

.ndh-notice {
    padding: 0.75rem 1.5rem;
    border-radius: var(--ndh-radius-md);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ndh-notice--success {
    background: #E8F5E8;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.ndh-notice--error {
    background: #FDECEA;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.ndh-notice--info {
    background: rgba(224, 122, 95, 0.08);
    color: var(--ndh-accent-dark);
    border: 1px solid rgba(224, 122, 95, 0.2);
}

/* ==========================================================================
   LOADING SKELETON
   ========================================================================== */

.ndh-skeleton {
    background: linear-gradient(90deg, var(--ndh-surface) 25%, var(--ndh-surface-light) 50%, var(--ndh-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--ndh-radius-sm);
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   BADGE / PILL
   ========================================================================== */

.ndh-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ndh-badge--accent {
    background: rgba(224, 122, 95, 0.12);
    color: var(--ndh-accent);
}

.ndh-badge--dark {
    background: var(--ndh-primary);
    color: var(--ndh-white);
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.ndh-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ndh-accent), var(--ndh-accent-dark));
    z-index: 10000;
    transition: width 50ms linear;
}
