/* ==========================================================================
   Help Center / Policy Pages - Shared Styles
   Used by: contact, price-match, returns, financing, shipping
   ========================================================================== */

/* CSS Variables */
:root {
    --hc-primary: #bf981c;
    --hc-primary-light: rgba(185, 153, 41, 0.13);
    --hc-primary-dark: #a37e2c;
    --hc-text: #333333;
    --hc-text-light: #666666;
    --hc-bg-light: #f8f9fa;
    --hc-bg-white: #ffffff;
    --hc-border: #e8eaf0;
    --hc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --hc-radius: 12px;
    --hc-radius-sm: 8px;
    --hc-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Resources.php CSS Migration
   All necessary styles from resources.php consolidated here
   ========================================================================== */

/* Hide the old resources.php icon box section */
.help-center-page ~ .grid-container.fluid .custserv-section,
.custserv-section {
    display: none !important;
}

/* Override resources.php border-left on help-content */
.help-center-page .help-content {
    border-left: none !important;
}

/* Icon rendering support */
.icon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Utility classes */
.bg-lightgray {
    background-color: #F8F8F8;
}

.bg-white {
    background: white;
}

.section-spacer {
    padding: 4% 0 4% 0;
}

.strong {
    font-weight: 600;
}

i.gold {
    color: #bf981c;
}

/* Gold button styling (used in some forms) */
.button.gold,
.button-gold {
    background-color: #bf981c;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button.gold:hover,
.button.gold:focus,
.button-gold:hover,
.button-gold:focus {
    background-color: #aa8819;
}

/* Contact form specific overrides (for legacy contact_form partial) */
.contact-form form .fieldset {
    border: 0px !important;
    margin: .5rem 0;
}

.contact-form form .fieldset legend {
    font-weight: bold;
    margin: 0;
    padding: 0;
    padding-bottom: .5rem;
}

.contact-form form input[type=text],
.contact-form form input[type=email],
.contact-form form textarea,
.contact-form form select {
    border-radius: 10px;
    padding: 1.5rem .5rem !important;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.help-center-page {
    font-family: var(--hc-font);
    color: var(--hc-text);
    padding-bottom: 3rem;
}

/* Hero Section */
.help-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.help-hero .grid-container {
    position: relative;
    z-index: 1;
}

.help-hero-content {
    text-align: center;
}

.help-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.help-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.help-hero .hero-badge {
    display: inline-block;
    background: var(--hc-primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Navigation Sidebar
   ========================================================================== */

.help-sidebar {
    position: sticky;
    top: 120px;
}

.help-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--hc-bg-white);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
}

.help-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hc-text-light);
    padding: 1rem 1rem 0.75rem;
    margin: 0;
    border-bottom: 1px solid var(--hc-border);
    background: var(--hc-bg-light);
}

.help-nav li {
    margin: 0;
    padding: 0;
}

.help-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: var(--hc-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 0;
}

.help-nav a:hover {
    background: var(--hc-primary-light);
    color: var(--hc-primary-dark);
}

.help-nav a.active {
    background: var(--hc-primary);
    color: white;
    font-weight: 600;
}

.help-nav a.active i {
    color: white;
}

.help-nav a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--hc-primary);
    font-size: 1rem;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.help-content {
    padding-left: 2rem;
}

.help-content-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--hc-border);
}

.help-content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
}

.help-content-header .page-description {
    font-size: 1.1rem;
    color: var(--hc-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Key Info Cards (Top Highlights)
   ========================================================================== */

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.key-info-card {
    background: var(--hc-bg-white);
    border-radius: var(--hc-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--hc-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--hc-border);
}

.key-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hc-shadow-hover);
}

.key-info-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--hc-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.key-info-card:hover .icon-wrapper {
    background: var(--hc-primary);
}

.key-info-card .icon-wrapper i {
    font-size: 1.5rem;
    color: var(--hc-primary);
    transition: all 0.3s ease;
}

.key-info-card:hover .icon-wrapper i {
    color: white;
}

.key-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
}

.key-info-card p {
    font-size: 0.9rem;
    color: var(--hc-text-light);
    margin: 0;
    line-height: 1.5;
}

.key-info-card .highlight-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hc-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.help-section {
    background: var(--hc-bg-white);
    border-radius: var(--hc-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--hc-shadow);
    border: 1px solid var(--hc-border);
}

.help-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--hc-primary-light);
    display: flex;
    align-items: center;
}

.help-section-title i {
    margin-right: 0.75rem;
    color: var(--hc-primary);
}

.help-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hc-text);
    margin-bottom: 1rem;
}

.help-section p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Info Cards
   ========================================================================== */

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--hc-bg-white);
    border-radius: var(--hc-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--hc-shadow);
    border: 1px solid var(--hc-border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hc-shadow-hover);
    border-color: var(--hc-primary);
}

.contact-card .icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--hc-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card .icon-wrapper i {
    font-size: 1.4rem;
    color: var(--hc-primary);
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 0.75rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--hc-text-light);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.contact-card a {
    color: var(--hc-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--hc-primary-dark);
    text-decoration: underline;
}

.contact-card .hours {
    font-size: 0.85rem;
    color: var(--hc-text-light);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hc-border);
}

/* ==========================================================================
   Contact Form Styling
   ========================================================================== */

.help-form-container {
    background: #f8f8f8;
    border-radius: var(--hc-radius);
    padding: 2rem;
    box-shadow: var(--hc-shadow);
    border: 1px solid var(--hc-border);
}

.help-form-container form .fieldset {
    border: 0;
    margin: 1rem 0;
    padding: 0;
}

.help-form-container form .fieldset legend {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
    padding: 0;
}

.help-form-container form .fieldset legend .legend-hint {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
}

.help-form-container form input[type="text"],
.help-form-container form input[type="email"],
.help-form-container form input[type="tel"],
.help-form-container form textarea,
.help-form-container form select {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--hc-bg-white);
    width: 100%;
    line-height: 1.5;
    height: auto;
}

.help-form-container form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.help-form-container form input[type="text"]:focus,
.help-form-container form input[type="email"]:focus,
.help-form-container form input[type="tel"]:focus,
.help-form-container form textarea:focus,
.help-form-container form select:focus {
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 3px rgba(191, 152, 28, 0.1);
    outline: none;
}

.help-form-container form textarea {
    min-height: 120px;
    resize: vertical;
}

.help-form-container form input[type="submit"],
.help-form-container form button[type="submit"],
.help-form-container .lookup-order-button {
    background: var(--hc-primary);
    color: white;
    border: none;
    border-radius: var(--hc-radius-sm);
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.help-form-container form input[type="submit"]:hover,
.help-form-container form button[type="submit"]:hover,
.help-form-container .lookup-order-button:hover {
    background: var(--hc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 152, 28, 0.3);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-section {
    margin-top: 2rem;
}

.faq-item {
    background: var(--hc-bg-white);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--hc-text);
    transition: all 0.2s ease;
    background: var(--hc-bg-white);
}

.faq-question:hover {
    background: var(--hc-bg-light);
}

.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--hc-primary);
    transition: transform 0.3s ease;
}

.faq-question.active {
    background: var(--hc-primary-light);
    color: var(--hc-primary-dark);
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--hc-text-light);
    line-height: 1.7;
}

.faq-answer.active {
    display: block;
}

/* ==========================================================================
   Policy List / Checklist
   ========================================================================== */

.policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--hc-bg-light);
    border-radius: var(--hc-radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.policy-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--hc-primary);
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.policy-list li.warning::before {
    content: '\f071';
    color: #e67e22;
}

.policy-list li.info::before {
    content: '\f05a';
    color: #3498db;
}

/* ==========================================================================
   Steps / Process
   ========================================================================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--hc-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--hc-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   CTA Buttons
   ========================================================================== */

.help-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: var(--hc-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--hc-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.help-cta:hover {
    background: var(--hc-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 152, 28, 0.3);
}

.help-cta i {
    margin-right: 0.5rem;
}

.help-cta.secondary {
    background: transparent;
    color: var(--hc-primary);
    border: 2px solid var(--hc-primary);
}

.help-cta.secondary:hover {
    background: var(--hc-primary);
    color: white;
}

/* ==========================================================================
   Fine Print / Footnotes
   ========================================================================== */

.fine-print {
    font-size: 0.85rem;
    color: var(--hc-text-light);
    line-height: 1.6;
    padding: 1rem;
    background: var(--hc-bg-light);
    border-radius: var(--hc-radius-sm);
    border-left: 3px solid var(--hc-border);
    margin-top: 1.5rem;
}

.fine-print strong {
    color: var(--hc-text);
}

.fine-print-cta {
    margin-top: 1rem;
}

/* ==========================================================================
   Financing Page Specific Styles
   ========================================================================== */

.affirm-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--hc-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#affirm-calculator {
    display: none;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

#close-calculator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

#close-calculator:hover {
    color: #333;
}

/* Affirm calculator header */
.affirm-calc-header {
    text-align: center;
    margin-bottom: 20px;
}

.affirm-calc-logo {
    height: 40px;
}

.affirm-calc-header h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.affirm-calc-header p {
    color: #666;
}

/* Affirm amount input */
.affirm-amount-wrapper {
    margin-bottom: 20px;
}

.affirm-amount-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.affirm-amount-input {
    display: flex;
    align-items: center;
}

.affirm-amount-input .dollar-sign {
    font-size: 1.2rem;
    margin-right: 10px;
}

.affirm-amount-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2rem;
}

/* Affirm APR buttons */
.affirm-apr-wrapper {
    margin-bottom: 20px;
}

.affirm-apr-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

#affirm-amount {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2rem;
}

#apr-buttons {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.apr-button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apr-button:hover {
    background: #f0f0f0;
}

.apr-button.active {
    background: #5a31f4;
    color: white;
}

#payment-options {
    margin-bottom: 20px;
}

.payment-option {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.payment-option-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

#affirm-calculator .disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 20px;
    text-align: left;
}

.affirm-hero-content {
    flex: 1;
    min-width: 280px;
}

.affirm-hero img.affirm-logo {
    max-width: 140px;
    margin-bottom: 1.5rem;
}

.affirm-hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.affirm-hero p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.affirm-hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.affirm-hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.affirm-calculator-container {
    background: #f8f9fa;
    border-radius: var(--hc-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e8eaf0;
}

.affirm-calculator-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hc-bg-light);
    border-radius: 50%;
    color: var(--hc-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--hc-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.key-info-card {
    text-decoration: none;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#shippingPolicyModal {
    display: none;
}

#shippingPolicyModal iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
}

.help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.help-modal-content {
    position: relative;
    background: white;
    border-radius: var(--hc-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--hc-border);
}

.help-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--hc-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-modal-header h2 i {
    color: var(--hc-primary);
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--hc-text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.help-modal-close:hover {
    background: var(--hc-bg-light);
    color: var(--hc-text);
}

.help-modal-body {
    padding: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media only screen and (max-width: 64em) {
    .help-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .help-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .help-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .help-nav-title {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .help-nav li {
        flex: 1 1 auto;
        min-width: 150px;
        border-bottom: none;
        border-right: 1px solid var(--hc-border);
    }
    
    .help-nav li:last-child {
        border-right: none;
    }
    
    .help-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .help-nav a:hover {
        padding-left: 1rem;
    }
}

@media only screen and (max-width: 40em) {
    .help-hero {
        padding: 2rem 1rem;
    }
    
    .help-hero h1 {
        font-size: 1.75rem;
    }
    
    .help-hero .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .help-hero .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.85rem;
    }
    
    .help-nav {
        flex-direction: column;
    }
    
    .help-nav li {
        border-right: none;
        min-width: 100%;
    }
    
    .help-nav a {
        justify-content: flex-start;
    }
    
    .help-content {
        border-left: 0 !important;
        padding-left: 0;
    }
    
    /* Contact form mobile adjustments */
    .contact-form form .fieldset {
        margin-left: 0;
    }
    
    .key-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .key-info-card {
        padding: 1.25rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .help-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .help-section-title {
        font-size: 1.1rem;
    }
    
    .help-form-container {
        padding: 1.25rem;
    }
    
    .help-form-container form input[type="text"],
    .help-form-container form input[type="email"],
    .help-form-container form input[type="tel"],
    .help-form-container form textarea,
    .help-form-container form select {
        font-size: 16px;
    }
    
    .help-content-header h1 {
        font-size: 1.5rem;
    }
    
    .affirm-hero {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .affirm-hero h2 {
        font-size: 1.35rem;
    }
    
    .affirm-hero-content,
    .affirm-hero-image {
        min-width: 100%;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
    
    .policy-list li {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 30em) {
    .help-hero h1 {
        font-size: 1.5rem;
    }
    
    .help-section {
        padding: 1.25rem;
    }
    
    .help-form-container {
        padding: 1rem;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
