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

        :root {
            --primary: #0A2540; /* Deep Blue */
            --primary-light: #0d3a65;
            --primary-dark: #06182c;
            --accent: #007BFF; /* Bright Blue */
            --accent-light: #4DA8FF;
            --accent-dark: #0056b3;
            --red: #e63946;
            --green: #2a9d8f;
            --white: #FFFFFF;
            --light: #F8FAFC;
            --grey: #e9ecef;
            --dark: #0A1929;
            --text: #344767;
            --text-light: #6c757d;
            --border-color: #E5E7EB;
            --shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
            --shadow-hover: 0 20px 40px rgba(10, 37, 64, 0.15);
            --card-border-radius: 16px;
            --card-padding: 25px;
            --card-shadow: 0 8px 24px rgba(10, 37, 64, 0.07);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
        }

        body {
            background-color: #f4f7f9;
            margin: 0;
            padding: 20px;
            font-family: 'Montserrat', sans-serif;
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .agreement-container {
            max-width: 950px;
            margin: 40px auto;
            padding: 0;
            background-color: transparent;
            box-shadow: none;
        }

        /* Step Indicator Styles */
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 50px;
            position: relative;
        }

        .step-indicator::before {
            content: "";
            position: absolute;
            top: 24px;
            left: 5%;
            right: 5%;
            height: 4px;
            background-color: var(--grey);
            z-index: 0;
            border-radius: 4px;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 1;
            transition: var(--transition);
            width: 20%;
        }

        .step-number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--white);
            color: var(--text-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            font-weight: 700;
            font-size: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            border: 4px solid var(--grey);
        }

        .step.active .step-number {
            background: var(--accent);
            color: white;
            transform: scale(1.15);
            border-color: var(--accent-light);
            box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
            animation: pulse 1.5s infinite;
        }

        .step.completed .step-number {
            background: var(--green);
            color: white;
            border-color: var(--green);
        }

        .step.completed .step-number::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 20px;
        }

        .step-text {
            font-size: 14px;
            color: var(--text-light);
            font-weight: 500;
            transition: var(--transition);
            text-align: center;
        }

        .step.active .step-text {
            color: var(--primary);
            font-weight: 700;
        }

        /* Form Container Styles */
        .form-container {
            background-color: var(--white);
            border-radius: var(--card-border-radius);
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .form-container:hover {
            box-shadow: var(--shadow-hover);
        }
        
        .form-container h2 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            font-family: 'Poppins', sans-serif;
        }

        .form-subtitle {
            color: var(--text-light);
            font-size: 16px;
            text-align: center;
            margin-bottom: 40px;
        }
        
        /* Broker Info Card (Step 1) */
        .broker-info-card {
            background-color: var(--light);
            border-radius: var(--card-border-radius);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            margin-bottom: 40px;
            border: 1px solid var(--border-color);
        }

        .broker-info-header {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            padding: 20px 25px;
            color: white;
        }

        .broker-info-header h3 {
            color: white;
            margin: 0 0 5px;
            font-size: 22px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
        }
        
        .broker-info-header .decorative-line {
            width: 60px;
            height: 3px;
            background-color: var(--accent-light);
            border-radius: 3px;
        }

        .broker-info-content {
            padding: 25px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px 25px;
        }

        .broker-info-row {
            display: flex;
            flex-direction: column;
        }

        .broker-info-row.full-width {
            grid-column: span 2;
        }
        
        .broker-info-label {
            font-weight: 600;
            color: var(--primary-light);
            font-size: 14px;
            margin-bottom: 4px;
        }

        .broker-info-value {
            color: var(--text);
            font-weight: 500;
        }
        .broker-info-value a {
            color: var(--accent-dark);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }
        .broker-info-value a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        /* Form Section Styles */
        .form-section-title {
            display: flex;
            align-items: center;
            margin: 40px 0 25px;
        }

        .form-section-title h3 {
            color: var(--primary);
            margin: 0 15px 0 0;
            font-size: 20px;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            white-space: nowrap;
        }

        .form-section-title .decorative-line {
            flex-grow: 1;
            height: 2px;
            background: linear-gradient(to right, var(--accent), transparent);
        }

        .carrier-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 25px;
        }

        .form-field label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text);
            font-size: 15px;
        }

        .form-field input,
        .form-field select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 15px;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
            background-color: var(--white);
            color: var(--text);
        }
        .form-field input::placeholder { color: var(--text-light); }

        .form-field input:focus,
        .form-field select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
            outline: none;
        }

        .form-field input.error,
        .form-field select.error {
            border-color: var(--red);
            background-color: rgba(230, 57, 70, 0.05);
        }

        .error-message {
            color: var(--red);
            font-size: 13px;
            margin-top: 6px;
            display: flex;
            align-items: center;
            font-weight: 500;
        }

        .error-message::before {
            content: '\f06a'; /* fas fa-exclamation-circle */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-right: 6px;
        }

        .note {
            color: var(--text);
            font-size: 14px;
            margin-top: 20px;
            display: flex;
            align-items: flex-start;
            background-color: rgba(0, 123, 255, 0.05);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--accent);
        }

        .note::before {
            content: '\f05a'; /* fas fa-info-circle */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-right: 12px;
            font-size: 18px;
            color: var(--accent);
            margin-top: 2px;
        }
        
        /* Button Styles */
        .button-container {
            display: flex;
            justify-content: flex-end;
            margin-top: 30px;
            gap: 15px;
        }

        .back-button,
        .continue-button {
            padding: 14px 35px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
            min-width: 160px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .back-button {
            background-color: var(--white);
            color: var(--text);
            border: 2px solid var(--border-color);
        }

        .back-button:hover {
            background-color: var(--grey);
            border-color: var(--grey);
            transform: translateY(-2px);
        }

        .continue-button {
            background: linear-gradient(135deg, var(--accent), var(--primary));
            color: white;
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
        }

        .continue-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
        }

        /* Terms Content Styles - Step 2 */
        .terms-content {
            background-color: var(--light);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            line-height: 1.7;
            font-size: 15px;
            max-height: 500px;
            overflow-y: auto;
        }

        .terms-section {
            margin-bottom: 25px;
        }
        
        .terms-section h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--accent);
            font-family: 'Poppins', sans-serif;
        }

        /* Agreement Checkbox */
        .agreement-checkbox {
            margin-top: 25px;
            padding: 15px;
            background-color: var(--light);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .agreement-checkbox label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 16px;
            color: var(--text);
            font-weight: 500;
            justify-content: center;
        }

        .agreement-checkbox input[type="checkbox"] {
            margin-right: 12px;
            width: 22px;
            height: 22px;
            accent-color: var(--accent);
        }
        
        /* Payment Method Container - Step 3 */
        .payment-method-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 15px;
            margin: 25px 0;
        }
        
        .payment-option {
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--white);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .payment-option:hover {
            border-color: var(--accent-light);
            transform: translateY(-3px);
            box-shadow: var(--card-shadow);
        }
        
        .payment-option.selected {
            border-color: var(--accent);
            background-color: rgba(0, 123, 255, 0.05);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
        }
        
        .payment-option.selected::before {
            content: '\f058'; /* far fa-check-circle */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 8px;
            right: 8px;
            color: var(--accent);
            font-size: 20px;
        }

        .payment-option-radio {
            padding: 20px 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .payment-option-radio input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .payment-option-radio label {
            font-weight: 600;
            font-size: 16px;
            color: var(--text);
            cursor: pointer;
        }

        /* Signature Input */
        .signature-input {
            font-family: 'Brush Script MT', 'Bradley Hand', cursive !important;
            font-size: 26px !important;
            color: var(--primary-dark);
            text-align: center;
            border-bottom: 2px solid var(--primary-light) !important;
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
            border-radius: 0 !important;
            background: linear-gradient(to top, rgba(0,123,255,0.05) 0%, transparent 50%);
        }

        /* Agreement Document (PDF Template) - Step 4 */
        .agreement-document-container {
            padding: 20px 0;
        }

        .agreement-document {
            background-color: white;
            max-width: 850px;
            width: 100%;
            margin: 0 auto 30px;
            padding: 50px 60px;
            box-shadow: none;
            font-family: 'Times New Roman', Times, serif;
            font-size: 11pt;
            line-height: 1.4;
            color: #000;
            border: none;
            box-sizing: border-box;
            overflow-x: hidden;
            word-wrap: break-word;
            page-break-inside: avoid;
        }

        .pdf-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 3px solid #0A2540;
            position: relative;
        }

        .pdf-header-left { 
            flex: 1; 
            padding-right: 20px;
        }
        
        .pdf-logo {
            width: 120px;
            height: auto;
            text-align: right;
            flex-shrink: 0;
        }

        .pdf-logo img {
            max-width: 100%;
            max-height: 60px;
            object-fit: contain;
        }

        .pdf-title {
            font-size: 16pt;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
            color: #000;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid #000;
            padding-bottom: 8px;
            background: none;
            page-break-after: avoid;
        }
        
        .pdf-header-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px 25px;
            font-size: 10pt;
            margin-top: 20px;
        }

        .pdf-detail-row {
            display: flex;
            margin-bottom: 8px;
            align-items: baseline;
        }

        .pdf-detail-row strong { 
            font-weight: bold; 
            min-width: 110px;
            color: #000;
            font-size: 9pt;
        }
        
        .pdf-detail-row .value {
            border-bottom: 1px solid #000;
            padding: 2px 6px;
            flex: 1;
            min-height: 1.2em;
            font-size: 9pt;
            font-weight: normal;
        }

        .pdf-detail-full-width {
            grid-column: span 2;
        }

        .pdf-broker-section,
        .pdf-carrier-section {
            background: white;
            border: 1px solid #000;
            padding: 15px;
            page-break-inside: avoid;
            margin-bottom: 15px;
        }

        .pdf-section { 
            margin-bottom: 25px; 
            page-break-inside: avoid;
        }
        .pdf-section-title {
            font-size: 11pt;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 10px;
            padding: 6px 8px;
            background: #f0f0f0;
            color: #000;
            border: 1px solid #000;
            letter-spacing: 0.5px;
            page-break-after: avoid;
        }
        .pdf-section-content p {
            margin-bottom: 10px;
            text-align: justify;
            line-height: 1.4;
            font-size: 10pt;
            page-break-inside: avoid;
        }
        
        .pdf-signature-section { 
            margin-top: 30px; 
            page-break-before: auto;
        }
        
        .pdf-signature-title {
            font-size: 12pt;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 1px solid #000;
            color: #000;
        }
        
        .pdf-signature-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            font-size: 9pt;
            page-break-inside: avoid;
        }
        
        .pdf-signature-table td {
            padding: 6px 8px;
            border: 1px solid #000;
            vertical-align: top;
        }
        
        .pdf-signature-table .sig-label {
            font-weight: bold;
            width: 90px;
            background: #f5f5f5;
        }
        
        .pdf-signature-table .sig-value {
            min-width: 180px;
            min-height: 25px;
        }
        
        .pdf-signature-table .broker-header {
            background: #e8e8e8;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            font-size: 10pt;
            padding: 8px 6px;
        }
        
        .pdf-signature-table .carrier-header {
            background: #e8e8e8;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            font-size: 10pt;
            padding: 8px 6px;
        }
        
        #pdf-signature {
            font-family: 'Brush Script MT', 'Bradley Hand', cursive;
            font-size: 16pt;
            color: #000;
            line-height: 1;
            display: block;
            padding: 5px 0;
        }
        
        .signature-image { 
            max-height: 30px; 
            width: auto; 
        }

        /* Desktop/Mobile Visibility */
        .desktop-only { display: block; }
        .mobile-only { display: none; }

        /* Clean PDF Table */
        .pdf-clean-table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 9pt;
        }

        .pdf-clean-table td {
            border: 1px solid #000;
            padding: 6px 8px;
            vertical-align: top;
        }

        .pdf-clean-table .table-header {
            background: #f0f0f0;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            font-size: 10pt;
        }

        .pdf-clean-table .table-label {
            font-weight: bold;
            width: 120px;
            background: #f8f8f8;
        }

        .pdf-clean-table .table-value {
            background: white;
        }
        
        .pdf-certificate-section {
            margin-top: 40px;
            padding: 20px;
            background: #f5f5f5;
            border: 1px solid #000;
            page-break-before: auto;
        }
        /* Other PDF styles remain the same from user's provided CSS */
        .pdf-certificate-title{font-size:12pt;font-weight:700;text-align:center;margin-bottom:20px;text-transform:uppercase}.pdf-certificate-details{display:flex;justify-content:space-between;margin-bottom:20px;font-size:10pt;line-height:1.4}.pdf-certificate-ids{text-align:left}.pdf-certificate-address{text-align:right}.pdf-certificate-address p{margin:0}.pdf-certificate-body{font-size:10pt;text-align:justify;line-height:1.5;margin-bottom:20px}.pdf-certificate-body p{margin-bottom:10px}.pdf-certificate-signature{margin-top:30px;text-align:right;font-size:10pt}.pdf-certificate-signature p{margin:0;line-height:1.4}.pdf-certificate-note{margin-top:30px;font-size:9pt;font-weight:700;text-align:left}.pdf-certificate-note p{margin-bottom:5px}
        
        /* Done Step Styles - Step 5 */
        .done-container { max-width: 850px; margin: 0 auto 30px; }
        .done-header {
            text-align: center;
            margin-bottom: 40px;
        }
        .done-header h2 { font-size: 36px; font-family: 'Poppins', sans-serif; color: var(--primary); }
        .done-header .form-subtitle { font-size: 18px; }

        .decorative-line-center {
            margin: 15px auto 25px;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--green));
            border-radius: 2px;
        }
        .pdf-preview {
            margin: 30px 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .done-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .done-info-card {
            background-color: var(--light);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid var(--border-color);
        }

        .done-info-card h3 {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--primary);
            margin: 0 0 15px 0;
            font-size: 18px;
            font-weight: 700;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            font-family: 'Poppins', sans-serif;
        }

        .done-info-card h3 i {
            color: var(--accent);
            font-size: 22px;
            width: 25px;
            text-align: center;
        }

        .done-info-card p {
            margin-bottom: 10px;
            font-size: 15px;
            line-height: 1.6;
            color: var(--text);
            display: flex;
        }

        .done-info-card p strong {
            color: var(--primary);
            margin-right: 8px;
            min-width: 140px;
            font-weight: 600;
        }

        .signature-value {
            font-family: 'Brush Script MT', cursive;
            font-size: 20px;
            color: var(--primary-dark);
        }

        .payment-value {
            font-weight: 600;
            color: var(--green);
        }

        /* Loading Overlay & Download Button */
        .loading-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(10, 37, 64, 0.85);
            backdrop-filter: blur(5px);
            display: flex; flex-direction: column; justify-content: center;
            align-items: center; z-index: 1000; color: white;
            transition: opacity 0.3s ease;
        }
        .spinner {
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 5px solid var(--accent-light);
            width: 60px; height: 60px;
            animation: spin 1s linear infinite;
            margin-bottom: 25px;
        }
        .loading-overlay p { 
            font-size: 18px; 
            font-weight: 500; 
            text-align: center;
            max-width: 500px;
            padding: 0 20px;
        }
        .loading-overlay .status-message {
            font-size: 14px;
            margin-top: 10px;
            opacity: 0.8;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        /* Success/Error indicators */
        .status-success {
            color: var(--green) !important;
        }
        .status-error {
            color: var(--red) !important;
        }
        .status-warning {
            color: #ffa726 !important;
        }
        
        .download-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid var(--border-color);
        }

        .download-button {
            background: linear-gradient(135deg, var(--green), var(--accent));
            color: white; border: none; padding: 15px 35px;
            border-radius: 50px; font-size: 18px; font-weight: 600;
            cursor: pointer; transition: var(--transition);
            display: flex; align-items: center; gap: 12px;
            margin-bottom: 20px; box-shadow: 0 4px 20px rgba(42, 157, 143, 0.3);
        }

        .download-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(42, 157, 143, 0.4);
        }

        .download-section .note {
            text-align: center;
            max-width: 600px;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .broker-info-content {
                grid-template-columns: 1fr;
            }
            .broker-info-row.full-width {
                grid-column: span 1;
            }
            .pdf-header-details {
                grid-template-columns: auto 1fr;
                gap: 5px 15px;
            }
            .agreement-document {
                padding: 30px 25px;
                margin: 0 auto 20px;
            }
            .pdf-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .pdf-logo {
                margin-top: 15px;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            body { 
                padding: 5px; 
                overflow-x: hidden;
            }
            .agreement-container { 
                margin: 10px auto; 
                padding: 0 5px;
                max-width: 100%;
            }
            .form-container { 
                padding: 20px 10px; 
                margin: 0 0 15px 0;
            }
            .step-text { display: none; }
            
            /* PDF Document Mobile Styles */
            .agreement-document-container {
                padding: 10px 0;
                overflow-x: hidden;
            }
            .agreement-document {
                padding: 15px 10px;
                font-size: 10pt;
                margin: 0 0 15px 0;
                border: 1px solid #000;
                overflow-x: hidden;
                word-wrap: break-word;
                overflow-wrap: break-word;
                max-width: 100%;
            }
            .pdf-header {
                margin-bottom: 15px;
                text-align: center;
            }
            .pdf-title {
                font-size: 12pt;
                margin-bottom: 10px;
                padding: 5px 0;
            }
            .pdf-logo {
                position: static;
                text-align: center;
                width: 50px;
                margin: 8px auto;
                display: block;
            }
            /* Desktop/Mobile Visibility */
            .desktop-only { display: none !important; }
            .mobile-only { display: block !important; }

            /* Clean mobile table */
            .pdf-clean-table {
                font-size: 8pt;
                margin: 10px 0;
            }

            .pdf-clean-table td {
                padding: 4px 6px;
                word-break: break-word;
            }

            .pdf-clean-table .table-header {
                font-size: 8pt;
                padding: 6px 4px;
            }

            .pdf-clean-table .table-label {
                width: 80px;
                font-size: 7pt;
            }

            .pdf-clean-table .table-value {
                font-size: 8pt;
            }

            /* Mobile table styling */
            .pdf-info-table {
                font-size: 8pt;
                width: 100%;
            }
            .pdf-info-table td {
                padding: 4px 6px;
                word-break: break-word;
                overflow-wrap: break-word;
            }
            .pdf-info-table .label {
                width: 70px;
                font-size: 7pt;
            }
            .pdf-info-table .value {
                font-size: 8pt;
                min-width: 80px;
            }
            .pdf-broker-section,
            .pdf-carrier-section {
                background: white;
                padding: 12px;
                border: 1px solid #000;
                margin-bottom: 10px;
            }
            .pdf-detail-row {
                margin-bottom: 10px;
                flex-direction: column;
                align-items: flex-start;
            }
            .pdf-detail-row strong {
                min-width: auto;
                margin-bottom: 3px;
                font-size: 8pt;
            }
            .pdf-detail-row .value {
                width: 100%;
                padding: 4px 8px;
                font-size: 9pt;
            }
            .pdf-title {
                font-size: 14pt;
                margin-bottom: 20px;
                padding: 10px;
            }
            .pdf-section {
                margin-bottom: 20px;
            }
            .pdf-section-title {
                font-size: 10pt;
                margin-bottom: 8px;
                padding: 6px 10px;
            }
            .pdf-section-content p {
                margin-bottom: 10px;
                font-size: 9pt;
                line-height: 1.5;
            }
            
            /* Signature section mobile */
            .pdf-signature-section {
                margin-top: 20px;
            }
            .pdf-signature-title {
                font-size: 10pt;
                margin-bottom: 10px;
            }
            .pdf-signature-table {
                font-size: 9pt;
            }
            .pdf-signature-table td {
                padding: 6px 8px;
                word-break: break-word;
            }
            .pdf-signature-table .sig-label {
                width: 80px;
                font-size: 8pt;
            }
            .pdf-signature-table .sig-value {
                min-width: 100px;
                font-size: 8pt;
            }
            .pdf-signature-table .broker-header,
            .pdf-signature-table .carrier-header {
                font-size: 9pt;
                padding: 8px 6px;
            }
            #pdf-signature {
                font-size: 12pt;
            }
            .signature-image {
                max-height: 20px;
            }
            
            /* Certificate section mobile */
            .pdf-certificate-details {
                flex-direction: column;
                margin-bottom: 15px;
            }
            .pdf-certificate-ids,
            .pdf-certificate-address {
                text-align: left;
                margin-bottom: 10px;
            }
            .pdf-certificate-body {
                font-size: 9pt;
            }
            
            /* Done page mobile */
            .done-content { grid-template-columns: 1fr; }
            .done-info-card p { 
                flex-direction: column; 
                align-items: flex-start; 
                margin-bottom: 8px;
            }
            .done-info-card p strong { 
                min-width: auto; 
                margin-bottom: 4px;
            }
            
            /* PDF Preview mobile */
            .pdf-preview {
                margin: 20px 0;
            }
            #pdfPreview {
                height: 400px;
            }
        }

        @media (max-width: 576px) {
            body { 
                padding: 3px; 
                overflow-x: hidden;
            }
            .agreement-container { 
                margin: 5px auto; 
                padding: 0 3px;
                max-width: 100%;
            }
            .form-container { 
                padding: 15px 8px; 
                margin: 0 0 10px 0;
            }
            .carrier-form-grid { grid-template-columns: 1fr; }
            .button-container {
                flex-direction: column;
                gap: 10px;
                margin-top: 20px;
            }
            .back-button, .continue-button { width: 100%; }
            .payment-method-container { 
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
                gap: 8px; 
            }
            .payment-option-radio { 
                padding: 15px 8px; 
            }
            .payment-option-radio label { 
                font-size: 13px; 
            }
            .step-number { 
                width: 40px; 
                height: 40px; 
                font-size: 16px; 
            }
            .step-indicator::before { 
                left: 10%; 
                right: 10%; 
            }
            .form-container h2 { 
                font-size: 22px; 
            }
            .done-header h2 { 
                font-size: 24px; 
            }
            
            /* Agreement document extra small screens */
            .agreement-document-container {
                padding: 5px 0;
            }
            .agreement-document {
                padding: 12px 8px;
                font-size: 9pt;
                overflow-x: hidden;
                word-wrap: break-word;
            }
            .pdf-header-details {
                font-size: 8pt;
            }
            .pdf-section-content p {
                font-size: 8pt;
            }
            .pdf-title {
                font-size: 12pt;
            }
            .pdf-certificate-body {
                font-size: 8pt;
            }
            
            /* Download section mobile */
            .download-section {
                flex-direction: column;
                align-items: stretch;
            }
            .download-button {
                width: 100%;
                margin: 5px 0;
                justify-content: center;
            }
            #emailButton {
                margin-left: 0 !important;
            }
            
            /* Loading overlay mobile */
            .loading-overlay p {
                font-size: 16px;
                padding: 0 15px;
            }
            .spinner {
                width: 50px;
                height: 50px;
            }
        }

        /* Extra small screens (phones in portrait) */
        @media (max-width: 375px) {
            .agreement-document {
                padding: 10px 8px;
                font-size: 8pt;
            }
            .pdf-header-details {
                font-size: 7pt;
            }
            .pdf-section-content p {
                font-size: 7pt;
            }
            .pdf-title {
                font-size: 11pt;
            }
            .form-container h2 {
                font-size: 20px;
            }
            .step-number {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }
        }