 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Phone Input Styles */
    .phone-group .phone-input-wrapper {
        display: flex;
        gap: 10px;
        align-items: stretch;
    }

    /* Hide WordPress header for donation template */
    .site-header {
        display: none !important;
    }

    .phone-input-wrapper input[type="tel"] {
        flex: 1;
        padding: 11px 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 15px;
        background: white;
        height: 47px;
        box-sizing: border-box;
    }

    .phone-input-wrapper input[type="tel"]:focus {
        outline: none;
        border-color: #ff0000;
    }

    .country-flag {
        position: absolute;
        left: 10px;
        font-size: 16px;
        pointer-events: none;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
    }

    .country-code-selector .dropdown-arrow {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 1;
    }

    .phone-input-wrapper input[type="tel"] {
        flex: 1;
        padding: 11px 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 15px;
        background: white;
        height: 47px;
        box-sizing: border-box;
    }

    .phone-input-wrapper input[type="tel"]:focus {
        outline: none;
        border-color: #ff0000;
    }

    .country-code-selector:focus-within {
        border-color: #ff0000;
    }

    .country-code-selector select:focus {
        outline: none;
    }

    /* Ensure proper alignment on mobile */
    .phone-input-wrapper {
        align-items: stretch;
    }

    .close-btn,
    .menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }

    .close-btn {
        margin-left: -8px;
    }

    .menu-btn {
        gap: 6px;
        margin-right: -8px;
    }

    .menu-icon {
        display: grid;
        grid-template-columns: repeat(2, 6px);
        gap: 3px;
    }

    .menu-icon span {
        width: 6px;
        height: 6px;
        background: #ff0000;
        border-radius: 50%;
    }

    .menu-text {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

    /* Stepper Dots - Mobile Optimized */
    .stepper-dots {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #d0d0d0;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        font-size: 0;
        color: transparent;
    }

    .country-code-selector {
        position: relative;
        display: flex;
        align-items: center;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0;
        min-width: 90px;
        flex-shrink: 0;
        height: 47px;
    }

    .country-code-selector select {
        border: none;
        background: transparent;
        padding: 11px 24px 11px 32px;
        font-size: 15px;
        color: #333;
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        height: 100%;
        outline: none;
        cursor: pointer;
        border-radius: 8px;
        overflow-y: auto;
        max-height: 200px;
    }

    .dot.completed {
        background: #ED1F27;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        font-size: 0;
        color: transparent;
    }

    .dot.active {
        background: #ED1F27;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        color: white;
        font-size: 10px;
        font-weight: 600;
    }

    .stepper-container {
        width: 100%;
        margin: 0;
        background: #F8F8F8;
        min-height: 100vh;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', sans-serif;
        overflow: visible;
        position: static;
        display: none;
    }

    .post-registration {
        display: none;
        background: #ED1F27;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 10px 10px 10px 10px;
    }

    .stepper-container.active {
        display: block;
    }

    .post-registration.active {
        display: flex;
        align-items: center;
        flex-flow: column;
        color: #FFFFFF;
        gap: 30px;
        padding: 250px 10px 30px 30px;

        h1 {
            font-size: 32px;
            text-align: left;
            width: 100%;
            font-weight: 200;
            white-space: pre-line;
        }

        p {
            white-space: pre-line;
            width: 100%;
        }

        a {
            background-color: #FFFFFF;
            color: #ED1F27;
            border: 0;
            font-weight: 600;
            padding: 20px 40px;
            border-radius: 35px;
        }

        .post-registration-actions {
            display: flex;
            width: 100%;
        }

    }

    /* Header Styles - Mobile Optimized */
    .stepper-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        width: 100%;
        z-index: 1002;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Step Panel Styles - Mobile Optimized */
    .step-panel {
        display: none;
        animation: fadeIn 0.3s ease;
        padding-bottom: 40px;
    }

    .step-panel.active {
        display: block;
    }

    /* Content Area - Account for fixed header */
    .stepper-content {
        padding-top: 100px;
        min-height: 100vh;
    }

    .signup-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .signup-header {
        color: white;
        font-size: 72px;
        font-weight: 300;
        margin-bottom: 60px;
        text-align: center;
    }

    /* Progress Steps */
    .progress-steps {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 40px;
    }

    .step-indicator {
        display: flex;
        align-items: center;
        color: #666;
        font-size: 14px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid #666;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
        transition: all 0.3s ease;
    }

    .step-indicator.active .step-number {
        background: #e74c3c;
        border-color: #e74c3c;
        color: white;
    }

    .step-indicator.completed .step-number {
        background: #27ae60;
        border-color: #27ae60;
        color: white;
    }

    /* Card Styles */
    .signup-card {
        background: white;
        border-radius: 12px;
        padding: 40px 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-btn:hover {
        color: #333;
    }

    .language-selector {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .flag-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #e74c3c;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 10px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 8px;
        color: #333;
        text-align: center;
    }

    .subtitle {
        color: #666;
        font-size: 14px;
        margin-bottom: 30px;
        text-align: center;
    }

    /* Form Styles */
    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    input:focus,
    select:focus {
        outline: none;
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

    .phone-input {
        display: flex;
        gap: 10px;
    }

    .country-code {
        width: 120px;
    }

    /* Button Styles */
    .btn {
        width: 100%;
        padding: 14px;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
    }

    .btn-primary {
        background: #e74c3c;
        color: white;
    }

    .btn-primary:hover {
        background: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    }

    .btn-secondary {
        background: #e0e0e0;
        color: #666;
    }

    .btn-secondary:hover {
        background: #d0d0d0;
    }

    /* Terms Checkbox */
    .terms-container {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .checkbox-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .checkbox-wrapper input[type="checkbox"] {
        margin-top: 3px;
    }

    .terms-text {
        font-size: 12px;
        color: #666;
        line-height: 1.5;
    }

    .terms-text a {
        color: #e74c3c;
        text-decoration: none;
    }

    /* Welcome Screen */
    .welcome-screen {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        text-align: center;
        padding: 60px 40px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .welcome-screen h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .welcome-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 40px;
        opacity: 0.95;
    }

    .btn-welcome {
        background: white;
        color: #e74c3c;
        max-width: 200px;
        margin: 0 auto;
    }

    .btn-welcome:hover {
        background: #f8f8f8;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    }

    /* Navigation */
    .form-navigation {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        margin-top: 30px;
    }

    .form-navigation .btn {
        flex: 1;
    }

    /* Hide all steps except active */
    .step-content {
        display: none;
    }

    .step-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Password strength indicator */
    .password-strength {
        margin-top: 8px;
        height: 4px;
        background: #e0e0e0;
        border-radius: 2px;
        overflow: hidden;
    }

    .password-strength-bar {
        height: 100%;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .strength-weak {
        width: 33%;
        background: #e74c3c;
    }

    .strength-medium {
        width: 66%;
        background: #f39c12;
    }

    .strength-strong {
        width: 100%;
        background: #27ae60;
    }

    .date-selectors {
        display: flex;
        gap: 10px;
    }

    /* Responsive */
    @media (max-width: 768px) {
        body {
            padding: 15px;
        }

        .signup-container {
            width: 100%;
            max-width: 100%;
        }

        .signup-header {
            font-size: 42px;
            margin-bottom: 30px;
        }

        /* Mobile Progress Steps */
        .progress-steps {
            gap: 5px;
            margin-bottom: 25px;
            padding: 0 10px;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .progress-steps::-webkit-scrollbar {
            display: none;
        }

        .step-indicator {
            font-size: 11px;
            white-space: nowrap;
            min-width: fit-content;
        }

        .step-indicator span:not(.step-number) {
            display: none;
            /* Hide text labels on very small screens */
        }

        .step-number {
            width: 35px;
            height: 35px;
            font-size: 14px;
            margin-right: 0;
        }

        /* Card adjustments */
        .signup-card {
            padding: 25px 20px;
            border-radius: 16px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }

        .card-header {
            margin-bottom: 20px;
        }

        h2 {
            font-size: 20px;
            margin-bottom: 6px;
        }

        .subtitle {
            font-size: 13px;
            margin-bottom: 20px;
        }

        /* Form elements */
        .form-group {
            margin-bottom: 15px;
        }

        label {
            font-size: 13px;
            margin-bottom: 6px;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"],
        input[type="date"],
        select {
            padding: 14px 12px;
            font-size: 16px;
            /* Prevents zoom on iOS */
            border-radius: 10px;
        }

        /* Phone input adjustment */
        .phone-input {
            flex-direction: column;
            gap: 12px;
        }

        .country-code {
            width: 100%;
        }


        /* Buttons */
        .btn {
            padding: 16px;
            font-size: 14px;
            border-radius: 25px;
            font-weight: 600;
        }

        .form-navigation {
            gap: 10px;
            margin-top: 20px;
        }

        .form-navigation .btn {
            min-height: 48px;
            /* Better touch target */
        }

        /* Terms text */
        .terms-container {
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .terms-text {
            font-size: 11px;
            line-height: 1.4;
        }

        .checkbox-wrapper input[type="checkbox"] {
            width: 18px;
            height: 18px;
            min-width: 18px;
            margin-top: 2px;
        }

        /* Welcome screen */
        .welcome-screen {
            padding: 40px 25px;
            border-radius: 16px;
        }

        .welcome-screen h1 {
            font-size: 28px;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .welcome-text {
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 30px;
        }

        .btn-welcome {
            max-width: 180px;
            padding: 16px;
        }

        /* Close button */
        .close-btn {
            font-size: 28px;
            width: 35px;
            height: 35px;
        }
    }

    @media (max-width: 480px) {
        .signup-header {
            font-size: 36px;
        }

        .donation-stepper-container {
            max-width: 600px;
            margin: 0 auto;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }

        .stepper-header {
            position: fixed;
            max-width: 600px;
            width: 100%;
        }

        .step-title {
            font-size: 26px;
        }

        /* Show step numbers with abbreviated text */
        .step-indicator {
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .step-indicator span:not(.step-number) {
            display: block;
            font-size: 10px;
        }

        .step-number {
            margin-right: 0;
            margin-bottom: 2px;
        }

        h2 {
            font-size: 18px;
        }

        .subtitle {
            font-size: 12px;
        }
    }

    @media (max-width: 380px) {
        .signup-header {
            font-size: 32px;
            margin-bottom: 25px;
        }

        .signup-card {
            padding: 20px 15px;
        }

        /* Hide step labels completely on very small devices */
        .step-indicator span:not(.step-number) {
            display: none;
        }

        .step-indicator {
            flex-direction: row;
        }

        .form-navigation {
            flex-direction: column;
        }

        .form-navigation .btn {
            width: 100%;
        }
    }

    /* Touch-friendly adjustments */
    @media (hover: none) and (pointer: coarse) {

        /* Increase touch targets */
        input[type="checkbox"] {
            width: 20px;
            height: 20px;
        }

        .btn {
            min-height: 48px;
        }

        select {
            min-height: 48px;
        }

        /* Remove hover effects on touch devices */
        .btn:hover {
            transform: none;
        }
    }

    /* Landscape mobile */
    @media (max-height: 600px) and (orientation: landscape) {
        body {
            padding: 10px;
        }

        .signup-header {
            font-size: 32px;
            margin-bottom: 20px;
        }

        .progress-steps {
            margin-bottom: 15px;
        }

        .signup-card {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        h2 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .subtitle {
            margin-bottom: 15px;
        }
    }

    /* iOS specific fixes */
    @supports (-webkit-touch-callout: none) {

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"],
        select {
            font-size: 16px;
            /* Prevents zoom on focus */
            -webkit-appearance: none;
        }

        select {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 20px;
            padding-right: 40px;
        }
    }

    /* Safe area insets for modern phones */
    @supports (padding: max(0px)) {
        body {
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
            padding-bottom: max(15px, env(safe-area-inset-bottom));
        }
    }