/**
 * Registration Page Styles
 * Mobile-first design matching mockup
 */

/* Hide breadcrumb/page-title bar on registration pages - keep nav visible */
.hh-registration-page~.lp-page-title-wrap,
body.hh-registration .lp-page-title-wrap,
body:has(.hh-registration-page) .lp-page-title-wrap,
body:has(.hh-registration-page) .page-listing-details,
body:has(.hh-registration-page) .lp-breadcrumbs,
body:has(.hh-registration-page) #main-breadcrumbs,
body:has(.hh-registration-page) .breadcrumb-section,
body:has(.hh-registration-page) .page-heading,
.page-template-page-registration .lp-page-title-wrap,
.page-template-page-registration-step2 .lp-page-title-wrap,
.page-template-page-registration .page-heading,
.page-template-page-registration-step2 .page-heading {
    display: none !important;
}

/* Hide sidebar on registration pages */
body:has(.hh-registration-page) #secondary,
body:has(.hh-registration-page) .sidebar,
body:has(.hh-registration-page) aside,
body:has(.hh-registration-page) .lp-sidebar,
body:has(.hh-registration-page) .widget-area {
    display: none !important;
}

/* Make content full width on registration pages */
body:has(.hh-registration-page) #primary,
body:has(.hh-registration-page) .site-content,
body:has(.hh-registration-page) .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Override theme backgrounds on registration pages */
body:has(.hh-registration-page),
body:has(.hh-registration-page) #page,
body:has(.hh-registration-page) .site,
body:has(.hh-registration-page) #content,
body:has(.hh-registration-page) .main-container,
body:has(.hh-registration-page) .lp-section-content,
body:has(.hh-registration-page) .container,
body:has(.hh-registration-page) .row {
    background: transparent !important;
    background-color: #0D1B2A !important;
}

/* =========================================
   Registration Page - Base (Mobile First)
   ========================================= */
.hh-registration-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0D1B2A 0%, #1A0A14 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-top: -60px;
    /* Pull up to cover any breadcrumb area */
    padding-top: 20px;
}

/* Background decoration */
.hh-registration-page::before {
    content: '';
    position: absolute;
    top: 200px;
    right: -100px;
    width: 400px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.hh-reg-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.hh-back-btn {
    position: absolute;
    left: 24px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s;
}

.hh-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hh-reg-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* Progress Dots */
.hh-reg-progress {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.hh-dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.hh-dot.active {
    background: linear-gradient(90deg, #FF0066 0%, #FF3388 100%);
    width: 32px;
}

/* Content Area */
.hh-reg-content {
    flex: 1;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.hh-reg-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 8px;
}

.hh-highlight {
    color: #FF0066;
}

.hh-reg-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Role Selection Form */
#hh-role-selection-form {
    display: block;
}

#hh-role-selection-form input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Role Cards Container */
.hh-role-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Role Card */
.hh-role-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hh-role-card .hh-card-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    z-index: 0;
}

/* Selected State */
.hh-role-card.selected {
    border-color: #FF0066;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.2);
}

.hh-role-card.selected .hh-card-bg {
    background: rgba(255, 107, 0, 0.08);
}

/* Card Icon */
.hh-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.15);
    color: #FF6B00;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Card Content */
.hh-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hh-card-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #FF6B00;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hh-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.hh-card-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* Radio Circle */
.hh-card-check {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hh-radio-circle {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.hh-role-card.selected .hh-radio-circle {
    border-color: #FF6B00;
}

.hh-role-card.selected .hh-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #FF6B00;
    border-radius: 50%;
}

/* Footer */
.hh-reg-footer {
    padding: 24px;
    padding-top: 16px;
    position: relative;
    z-index: 1;
    margin-top: 16px;
}

.hh-continue-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(90deg, #FF6B00 0%, #FF8F33 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.hh-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
}

.hh-continue-btn i {
    font-size: 14px;
}

.hh-login-link {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 20px 0 0;
}

.hh-login-link a {
    color: #FF6B00;
    font-weight: 600;
    text-decoration: none;
}

.hh-login-link a:hover {
    text-decoration: underline;
}

/* =========================================
   Desktop Responsive Styles
   ========================================= */
@media (min-width: 768px) {
    .hh-registration-page {
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .hh-registration-page::before {
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
    }

    .hh-reg-header,
    .hh-reg-content,
    .hh-reg-footer {
        max-width: 500px;
        width: 100%;
    }

    .hh-reg-header {
        padding-top: 0;
    }

    .hh-back-btn {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 16px;
        align-self: flex-start;
    }

    .hh-reg-content h2 {
        font-size: 36px;
        text-align: center;
    }

    .hh-reg-content h2 br {
        display: none;
    }

    .hh-reg-subtitle {
        text-align: center;
    }

    /* Two-column cards on desktop */
    .hh-role-cards {
        flex-direction: row;
        gap: 20px;
    }

    .hh-role-card {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 20px;
    }

    .hh-card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .hh-card-content {
        text-align: center;
        width: 100%;
        padding: 0 4px;
    }

    .hh-card-content p {
        max-width: 180px;
        margin: 0 auto;
        text-align: center;
    }

    .hh-card-check {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .hh-continue-btn {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {

    .hh-reg-header,
    .hh-reg-content,
    .hh-reg-footer {
        max-width: 600px;
    }

    .hh-reg-content h2 {
        font-size: 42px;
    }

    .hh-role-card {
        padding: 40px 32px;
    }

    .hh-card-content h3 {
        font-size: 22px;
    }

    .hh-card-content p {
        font-size: 14px;
    }
}