.ppg-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.ppg-multi-step-form h2 {
    font-size: 32px;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
}

.ppg-step-content h3 {
    font-size: 24px;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.ppg-subtitle {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 16px;
}

.ppg-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.ppg-radio-item {
    position: relative;
    transition: all 0.3s ease;
}

.ppg-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ppg-radio-item label {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppg-radio-item:hover label {
    border-color: #3498db;
    background: #f8f9fa;
}

.ppg-radio-item input[type="radio"]:checked + label {
    border-color: #3498db;
    background: #ebf5ff;
}

.ppg-radio-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppg-radio-icon svg {
    width: 32px;
    height: 32px;
    fill: #3498db;
}

.ppg-radio-content {
    flex: 1;
}

.ppg-radio-title {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.ppg-radio-description {
    display: block;
    color: #666;
    font-size: 14px;
}

.ppg-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    display: none;
}

.ppg-preview.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.ppg-button-group {
    margin-top: 2rem;
    text-align: center;
}

.ppg-next-button {
    background: #3498db;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.ppg-next-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.ppg-next-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

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

/* Form Groups */
.ppg-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ppg-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.ppg-label-header {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/* Inputs and Selects */
.ppg-input,
.ppg-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.ppg-input:focus,
.ppg-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ppg-input:hover,
.ppg-select:hover {
    border-color: #bdc3c7;
}

.ppg-input::placeholder {
    color: #95a5a6;
}

.ppg-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.5rem auto;
    padding-right: 2.5rem;
}

/* Error Messages */
.ppg-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Navigation Buttons */
.ppg-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.ppg-prev-button {
    background: #fff;
    color: #3498db;
    padding: 14px 32px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppg-prev-button:hover {
    background: #f8f9fa;
    color: #2980b9;
    border-color: #2980b9;
}

/* Animation for step transitions */
.ppg-step {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.ppg-step h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.ppg-step-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ppg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.ppg-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1rem 0;
}

.ppg-radio-item {
    position: relative;
}

.ppg-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ppg-radio-item label {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ppg-radio-item input[type="radio"]:checked + label {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.05);
}

.ppg-radio-icon {
    margin-right: 1rem;
}

.ppg-radio-icon svg {
    width: 32px;
    height: 32px;
    fill: #4a5568;
}

.ppg-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ppg-button-group.centered {
    justify-content: center;
}

.ppg-prev-button,
.ppg-next-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ppg-next-button {
    background: #4299e1;
    color: white;
    min-width: 200px;
}

.ppg-next-button:hover {
    background: #3182ce;
}

.ppg-prev-button {
    background: #e2e8f0;
    color: #4a5568;
}

.ppg-prev-button:hover {
    background: #cbd5e0;
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    font-size: 14px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #a0aec0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 0.5rem;
    border-color: #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4299e1;
}

/* Country flag icons */
.select2-results__option .country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select2-results__option .country-flag {
    font-size: 1.2rem;
}

.flag-icon {
    margin-right: 8px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .ppg-form-row,
    .ppg-radio-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Entity Type specific styles */
.entity-type .ppg-radio-item {
    margin-bottom: 1rem;
}

.entity-type .ppg-radio-icon svg {
    fill: #3498db;
}

/* Business fields transition */
#business_fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#business_fields.active {
    max-height: 500px;
}

/* Step visibility and transitions */
.ppg-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ppg-step:first-child {
    display: block;
    opacity: 1;
}

.ppg-step.active {
    display: block;
    opacity: 1;
}

/* Button styles */
.ppg-button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ppg-button-group.centered {
    justify-content: center;
}

.ppg-next-button,
.ppg-prev-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.ppg-next-button {
    background-color: #4CAF50;
    color: white;
}

.ppg-next-button:hover {
    background-color: #45a049;
}

.ppg-prev-button {
    background-color: #f5f5f5;
    color: #333;
}

.ppg-prev-button:hover {
    background-color: #e0e0e0;
}

/* Progress Bar */
.ppg-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.ppg-progress:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.ppg-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100px;
}

.ppg-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ppg-progress-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 0.25rem;
}

.ppg-progress-step.active .ppg-progress-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.ppg-progress-step.active .ppg-progress-label {
    color: #4CAF50;
    font-weight: 600;
}

.ppg-progress-step.completed .ppg-progress-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.ppg-progress-step.completed .ppg-progress-label {
    color: #4CAF50;
}

/* Checkbox styles */
.ppg-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.ppg-checkbox-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppg-checkbox-item:hover {
    background: #f1f3f5;
    border-color: #dee2e6;
}

.ppg-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ppg-checkbox-mark {
    position: relative;
    display: inline-block;
    min-width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.ppg-checkbox-item input[type="checkbox"]:checked ~ .ppg-checkbox-mark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.ppg-checkbox-item input[type="checkbox"]:checked ~ .ppg-checkbox-mark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ppg-checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.ppg-checkbox-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.ppg-checkbox-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Adjust spacing for the others field */
#others_field {
    margin-top: 0.5rem;
}

#others_field.active {
    margin-bottom: 1rem;
}

/* Business Fields */
.ppg-business-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.ppg-business-fields.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* Entity Type Radio Group */
.ppg-radio-group.entity-type {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.ppg-radio-group.entity-type .ppg-radio-item label {
    height: 100%;
    padding: 1.25rem;
}

.ppg-radio-group.entity-type .ppg-radio-icon {
    margin-bottom: 0.5rem;
}

.ppg-radio-group.entity-type .ppg-radio-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.ppg-radio-group.entity-type .ppg-radio-item input[type="radio"]:checked + label {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.ppg-radio-group.entity-type .ppg-radio-item input[type="radio"]:checked + label .ppg-radio-icon {
    color: #4CAF50;
}

/* Step 4 Conditional Fields */
.ppg-conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
    grid-column: 1 / -1;
    margin: 0 1rem;
}

.ppg-conditional-field.active {
    max-height: 200px;
    opacity: 1;
    margin: 0.5rem 1rem 1.5rem;
}

.ppg-conditional-field .ppg-form-group {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ppg-conditional-field textarea.ppg-input {
    resize: vertical;
    min-height: 80px;
}

/* Validation Styles */
.ppg-input.error {
    border-color: #dc3545;
}

.ppg-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Step 5 Styles */
#step5 {
    text-align: center;
    padding: 2rem 0;
}

#step5 h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.ppg-summary-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ppg-summary-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ppg-summary-content {
    color: #666;
    line-height: 1.6;
}

.ppg-disclaimer {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem auto;
    max-width: 600px;
    font-size: 0.9rem;
}

.ppg-generate-button {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ppg-generate-button:hover {
    background: #45a049;
}

/* Modal Styles */
.ppg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.ppg-modal-content {
    position: relative;
    background: white;
    margin: 2rem auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ppg-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ppg-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.ppg-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ppg-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.ppg-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.ppg-copy-html,
.ppg-download-pdf {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ppg-copy-html {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #dee2e6;
}

.ppg-download-pdf {
    background: #4CAF50;
    color: white;
}

.ppg-copy-html:hover {
    background: #e9ecef;
}

.ppg-download-pdf:hover {
    background: #45a049;
}

.ppg-policy-preview {
    text-align: left;
    line-height: 1.6;
    color: #2c3e50;
}

.ppg-policy-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.ppg-policy-preview h1 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.ppg-policy-preview h2 {
    font-size: 20px;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.ppg-policy-preview h3 {
    font-size: 18px;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.ppg-policy-preview h4 {
    font-size: 16px;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.ppg-policy-preview p {
    margin-bottom: 1rem;
}

.ppg-policy-preview ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.ppg-policy-preview li {
    margin-bottom: 0.5rem;
}

.ppg-policy-preview a {
    color: #4CAF50;
    text-decoration: none;
}

.ppg-policy-preview a:hover {
    text-decoration: underline;
}

@media print {
    .ppg-policy-preview {
        padding: 0;
    }

    .ppg-policy-preview a {
        text-decoration: underline;
        color: #000;
    }
}
