body.page-template-page-signup .site-header,
body.page-template-page-signup header#masthead,
body.page-template-page-signup-thankyou .site-header,
body.page-template-page-signup-thankyou header#masthead {
    display: none !important;
}

.signup-page-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

.signup-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 57px;
    height: 76px;
    background: #FFFFFF;
    border-bottom: 1px solid #C7C7C7;
    position: relative;
    z-index: 10;
}

.signup-nav .custom-logo-link img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.signup-logo-text {
    font-weight: bold;
    font-size: 24px;
    color: #180E36;
    text-decoration: none;
    text-transform: lowercase;
}

/* Header Background Gradient */
.signup-header-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) -13.17%, rgba(24, 14, 54, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Journalist-specific Gradient */
.signup-header-bg.bg-journalist {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) -13.17%, rgba(29, 92, 168, 0.1) 100%);
}

.step-1-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    position: relative;
    z-index: 1;
    min-height: 800px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 32px;
    gap: 10px;
    width: 647px;
    background: #FFFFFF;
    box-shadow: 2px 2px 4px 2px rgba(24, 14, 54, 0.05);
    border-radius: 8px;
    margin: 0 auto;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.step-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: #180E36;
    margin: 0;
}

.step-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #180E36;
    margin: 0;
    width: 100%;
    max-width: 583px;
}

.step-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.btn-primary-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    width: 100%;
    height: 60px;
    background: #3CBCD6;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    transition: background 0.3s;
}

.btn-primary-custom:hover {
    background: #2aaec9;
    color: #fff;
}

.btn-secondary-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    width: 100%;
    height: 60px;
    border: 1px solid #180E36;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #180E36;
    transition: background 0.3s;
}

.btn-secondary-custom:hover {
    background: #f0f0f0;
}

.link-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    text-align: right;
    color: #180E36;
    text-decoration: none;
    width: 100%;
    display: block;
    text-align: center;
}

.step-2-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.step-join-company-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.pricing-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 32px;
    gap: 64px;
    width: 1100px;
    background: #FFFFFF;
    box-shadow: 2px 2px 4px 2px rgba(24, 14, 54, 0.05);
    border-radius: 8px;
    margin: 0 auto;
    position: relative;
}

.pricing-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pricing-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: #180E36;
    margin: 0;
}

.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.billing-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #180E36;
}

.toggle-switch {
    display: flex;
    flex-direction: row;
    width: 200px;
    height: 38px;
    border: 1px solid #3CBCD6;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.toggle-option {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    transition: all 0.3s ease;
}

.toggle-switch[data-state="monthly"] .toggle-option[data-value="monthly"] {
    background: #3CBCD6;
    color: #FFFFFF;
}

.toggle-switch[data-state="monthly"] .toggle-option[data-value="yearly"] {
    background: transparent;
    color: #3CBCD6;
}

.toggle-switch[data-state="yearly"] .toggle-option[data-value="monthly"] {
    background: transparent;
    color: #3CBCD6;
}

.toggle-switch[data-state="yearly"] .toggle-option[data-value="yearly"] {
    background: #3CBCD6;
    color: #FFFFFF;
}

.save-badge {
    position: absolute;
    top: -30px;
    right: 0;
    background: #FABE1A;
    color: #000;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: none;
}

.plans-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.plan-column {
    display: flex;
    flex-direction: column;
    padding: 38px 36px;
    gap: 32px;
    width: 50%;
    border-radius: 8px;
    box-sizing: border-box;
}

.plan-starter {
    border: 2px solid #62BD5D;
}

.plan-growth {
    border: 2px solid #D05301;
}

.plan-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: #000000;
    margin-bottom: 10px;
}

.plan-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #000000;
    min-height: 56px;
}

.plan-price-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.plan-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: #000000;
}

.plan-period {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #000000;
}

.plan-users-note {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #000000;
}

.feature-item.normal {
    font-weight: 400;
}

.check-icon {
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6L5.5 10.5L15 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 8px;
    flex-shrink: 0;
}

.custom-plan-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 38px 36px;
    gap: 32px;
    width: 100%;
    background: rgba(60, 188, 214, 0.05);
    border-radius: 8px;
    margin-top: 32px;
}

.custom-plan-text {
    flex-grow: 1;
}

.custom-plan-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: #000000;
    margin-bottom: 10px;
}

.custom-plan-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #000000;
}

.btn-contact {
    width: 350px;
    height: 60px;
    background: #3CBCD6;
    border-radius: 50px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.discount-badge-container {
    position: absolute;
    top: 48px;
    right: 3%;
    width: 100px;
    display: none;
}

.discount-text {
    background: url(../img/dicount.png);
    position: absolute;
    top: 5px;
    left: 0px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    font-family: 'Poppins', sans-serif;
    width: 90px;
    height: 25px;
    margin: auto;
    text-align: center;
}

.step-3-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    position: relative;
    z-index: 1;
    min-height: 800px;
}

.account-card {
    width: 647px;
    height: auto;
    min-height: 588px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    width: 100%;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #180E36;
    margin: 0;
}

.form-input {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    width: 100%;
    height: 60px;
    border: 1px solid #C7C7C7;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #180E36;
    background: #FFFFFF;
}

.form-input::placeholder {
    color: #C7C7C7;
}

.form-actions {
    width: 100%;
    margin-top: 10px;
}

.btn-create-account {
    background: #3CBCD6;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
}

.terms-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #180E36;
    margin-top: -10px;
}

.terms-text a {
    color: #180E36;
    text-decoration: underline;
}

.form-input.error {
    border: 1px solid #D05301;
    filter: drop-shadow(0px 0px 2px #D05301);
}

.error-msg {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #D05301;
    margin-top: 4px;
}

/* --- STEP 4: Profile Setup --- */
.step-4-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    position: relative;
    z-index: 1;
    min-height: 1000px;
    /* Longer form */
}

.profile-card {
    width: 647px;
    height: auto;
    min-height: 882px;
}

.profile-form {
    gap: 32px;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.selected-option {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
    height: 60px;
    border: 1px solid #C7C7C7;
    border-radius: 8px;
    background: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #C7C7C7;
    /* Placeholder color initially */
}

.selected-option.has-value {
    color: #180E36;
}

.selected-option::after {
    content: '';
    width: 15px;
    height: 8px;
    background-image: url('../img/image.png');
    /* Using the arrow image provided or similar logic */
    background-size: contain;
    background-repeat: no-repeat;
    /* Since we don't have the exact arrow arrow-down, using a border trick or assuming user replaced functionality. 
       Actually user provided 'image 64' as url(image.png) in the CSS dump. 
       I'll use a CSS arrow for reliability if image is missing, 
       but keeping user spec logic if possible. 
       Let's use a simple CSS chevron for now to ensure visibility. */
    background-image: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #C7C7C7;
}

.options-list {
    position: absolute;
    top: 70px;
    /* Below input */
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 0px 16px rgba(24, 14, 54, 0.15);
    border-radius: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 100;
    overflow: hidden;
}

.options-list li {
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #180E36;
    cursor: pointer;
    transition: background 0.2s;
}

.options-list li:hover {
    background: rgba(60, 188, 214, 0.05);
}

.custom-dropdown.error .selected-option {
    border: 1px solid #D05301;
    filter: drop-shadow(0px 0px 2px #D05301);
}

.options-list li:hover {
    background: rgba(60, 188, 214, 0.05);
}

.step-6-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    position: relative;
    z-index: 1;
    min-height: 800px;
}

.success-card {
    width: 647px;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 32px;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.success-message p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #180E36;
    margin: 0;
}

/* ========================================
   NEW: Invitation Flow Styles
   ======================================== */

.step-invite-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 148px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Invite Notice Badge */
.invite-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.invite-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(60, 188, 214, 0.1);
    color: #3CBCD6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.invite-notice-small {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
}

.invite-notice-small strong {
    color: #3CBCD6;
}

/* Readonly Fields (for invite flow) */
.readonly-field {
    background: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* ========================================
   NEW: Back Button & Split Actions
   ======================================== */

.form-actions-split {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.form-actions-split .btn-back-step {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    padding: 16px 24px;
}

.form-actions-split .btn-primary-custom {
    flex: 1;
}

.btn-back-step {
    background: transparent;
    border: 1px solid #C7C7C7;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back-step:hover {
    border-color: #180E36;
    color: #180E36;
    background: #f9f9f9;
}

/* ========================================
   NEW: Success Page Improvements
   ======================================== */

.success-card {
    width: 647px;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 32px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.success-actions .btn-secondary-custom {
    width: auto;
    padding: 12px 32px;
    height: auto;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
    .form-actions-split {
        flex-direction: column;
    }

    .form-actions-split .btn-back-step {
        width: 100%;
        order: 2;
    }

    .form-actions-split .btn-primary-custom {
        order: 1;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS (Mobile)
   ======================================== */

@media (max-width: 1150px) {

    /* Pricing Card Wrapper fits smaller screens */
    .pricing-card-wrapper {
        width: 95%;
        padding: 48px 24px;
    }
}

@media (max-width: 992px) {

    /* Stack Pricing Plans */
    .plans-grid {
        flex-direction: column;
        gap: 40px;
    }

    .plan-column {
        width: 100%;
    }

    /* Custom Plan Box specific adjustment if needed */
    .custom-plan-box {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .btn-contact {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Navbar */
    .signup-nav {
        padding: 16px 24px;
        justify-content: center;
    }

    /* Step Containers */
    .step-1-container,
    .step-2-container,
    .step-3-container,
    .step-4-container,
    .step-invite-container,
    .step-6-container {
        padding-top: 100px;
        /* Reduced top padding */
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Cards */
    .step-card,
    .pricing-card-wrapper,
    .profile-card,
    .account-card,
    .success-card {
        width: 100% !important;
        /* Override fixed pixel widths */
        min-height: auto;
        padding: 40px 24px;
        box-sizing: border-box;
    }

    /* Headings */
    .step-title,
    .pricing-title {
        font-size: 32px;
        line-height: 40px;
    }

    .step-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    /* Pricing Header */
    .pricing-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .billing-toggle-wrapper {
        flex-direction: column;
    }

    /* Form Inputs */
    .form-input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Actions Split */
    .form-actions-split {
        flex-direction: column;
    }

    .form-actions-split .btn-back-step {
        width: 100%;
        order: 2;
    }

    .form-actions-split .btn-primary-custom {
        order: 1;
    }

    /* Discount Badge */
    .discount-badge-container {
        top: 110px;
        /* Adjust based on stacked header */
        right: 50%;
        transform: translateX(50%);
    }
}