/* E-handel v3 Tab-based Wizard Styles */

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

/* Field Help Icon System */
.field-label-with-help {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.help-icon-circle {
    width: 16px;
    height: 16px;
    border: 1px solid #6b7280;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    line-height: 10px;
    margin: 0;
    position: relative;
    top: -1px;
}

.help-icon-circle:hover {
    color: #C9A34A;
    border-color: #C9A34A;
    background: rgba(201, 163, 74, 0.1);
}

.field-help-tooltip {
    position: relative;
    display: inline-block;
}

.field-help-tooltip .tooltip-content {
    visibility: hidden;
    width: 320px;
    background-color: #1f2937;
    color: white;
    text-align: left;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -160px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.field-help-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.field-help-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Mobile responsive tooltip */
@media (max-width: 768px) {
    .field-help-tooltip .tooltip-content {
        width: 280px;
        margin-left: -140px;
        left: 50%;
        font-size: 13px;
    }
}

/* Table help buttons styling */
.help-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.help-btn:hover {
    background-color: rgba(201, 163, 74, 0.1);
}

.help-btn .help-icon-circle {
    width: 16px;
    height: 16px;
    font-size: 10px;
    margin-top: 0;
}

.help-btn:hover .help-icon-circle {
    color: #C9A34A;
    border-color: #C9A34A;
    background: rgba(201, 163, 74, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0f0f0f 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #C9A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(201, 163, 74, 0.3);
}

.header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-top: 10px;
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Tab Navigation */
.tab-navigation {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2px;
}

@media (max-width: 968px) {
    .tab-navigation {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .personality-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tab-navigation {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .tab-navigation {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
    }
}

.tab {
    padding: 16px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.tab.active {
    background: rgba(201, 163, 74, 0.1);
    border-bottom-color: #C9A34A;
    color: #C9A34A;
}

.tab.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #4CAF50;
}

.tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab.active .tab-number {
    background: #C9A34A;
    color: white;
}

.tab.completed .tab-number {
    background: #28a745;
    color: white;
}

.tab-title {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px;
    min-height: 600px;
}

.tab-content.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Enhanced select dropdown styling */
.form-group select {
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6,9 12,15 18,9'></polyline></svg>") no-repeat right 12px center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #2a2a2a !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border: none !important;
}

/* Webkit-specific dropdown styling */
.form-group select::-webkit-dropdown-button {
    background: #2a2a2a;
    color: #ffffff;
}

/* Additional browser-specific styling for dropdowns */
@supports (-webkit-appearance: none) {
    .form-group select {
        color-scheme: dark;
    }
}

/* Firefox-specific styling */
@-moz-document url-prefix() {
    .form-group select {
        color-scheme: dark;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .form-group select option {
        background-color: #2a2a2a;
        color: #ffffff;
    }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #C9A34A;
    box-shadow: 0 0 0 3px rgba(201, 163, 74, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.info-box p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.info-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.info-box li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

/* Color Picker Styling */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-display {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-display:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-display::after {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-display:hover::after {
    opacity: 0.8;
}

#brand_color_hex {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    width: 120px;
}

/* Upload Area Styling */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #C9A34A;
    background: rgba(201, 163, 74, 0.05);
}

.upload-area.dragover {
    border-color: #C9A34A;
    background: rgba(201, 163, 74, 0.1);
    transform: scale(1.02);
}

.upload-content h4 {
    margin: 12px 0 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.upload-content p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.6);
}

.upload-link {
    color: #C9A34A;
    font-weight: 600;
    cursor: pointer;
}

.upload-link:hover {
    text-decoration: underline;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.upload-formats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

/* Uploaded Files Display */
.uploaded-files {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.uploaded-file {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.uploaded-file img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.uploaded-file .file-info {
    padding: 8px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

.uploaded-file .remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-file .remove-file:hover {
    background: #dc2626;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.step-indicator {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

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

.btn-primary:hover {
    background: #b8932e;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 163, 74, 0.5);
    color: #C9A34A;
}

.btn-outline:hover {
    background: rgba(201, 163, 74, 0.2);
    border-color: #C9A34A;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Required field indicators */
.form-group label[for*="company"]:after,
.form-group label[for*="contact_person"]:after,
.form-group label[for*="email"]:after,
.form-group label[for*="phone"]:after,
.form-group label[for*="product_categories"]:after,
.form-group label[for*="shipping_countries"]:after {
    content: " *";
    color: #dc3545;
}

/* Validation states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .tab {
        padding: 14px 8px;
        gap: 4px;
    }
    
    .tab-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .tab-title {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tab {
        padding: 12px 6px;
        gap: 3px;
    }
    
    .tab-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .tab-title {
        font-size: 10px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .step-indicator {
        order: -1;
    }
}

@media (max-width: 480px) {
    .header h2 {
        font-size: 1.1rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .tab {
        padding: 10px 4px;
        gap: 2px;
    }
    
    .tab-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .tab-title {
        font-size: 9px;
        line-height: 1.1;
    }
}

/* Animation for tab transitions */
.tab-content {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading state for form submission */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C9A34A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* XML Fields Table Styles */
.xml-fields-table {
    margin-top: 15px;
}

.fields-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fields-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.fields-table th,
.fields-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fields-table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.fields-table td {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.fields-table code {
    background: rgba(201, 163, 74, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: #C9A34A;
}

.difficulty {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.difficulty.easy {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.difficulty.needs-guidance {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

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

.guidance-content {
    background: rgba(15, 15, 15, 0.95);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guidance-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.guidance-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.guidance-content h3 {
    color: #C9A34A;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.guidance-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.guidance-content .example {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #C9A34A;
}

.guidance-content .example-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.guidance-content code {
    background: rgba(201, 163, 74, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    color: #C9A34A;
}

.guidance-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.guidance-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.guidance-content li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* Delivery Management Styles */
.carrier-fields {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #C9A34A;
    backdrop-filter: blur(10px);
}

.carrier-fields h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#centralized-delivery-fields,
#individual-carriers-fields {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#carrier-credentials-container {
    margin-top: 20px;
}

/* Delivery management specific styles */
.delivery-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.delivery-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    min-height: auto;
    backdrop-filter: blur(10px);
}

.delivery-radio-label:hover {
    border-color: #C9A34A;
    background: rgba(255, 255, 255, 0.05);
}

.delivery-radio-label input[type="radio"]:checked + .delivery-radio-content {
    color: #C9A34A;
}

.delivery-radio-label input[type="radio"] {
    margin: 4px 0 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.delivery-radio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.delivery-radio-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.delivery-radio-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #C9A34A;
}

.radio-label input[type="radio"] {
    margin: 3px 0 0 0;
    flex-shrink: 0;
}

/* Ensure radio buttons in integration method groups show properly */
.radio-group .radio-label input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.radio-label span {
    flex: 1;
    text-align: left;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 40px);
    line-height: 1.4;
    white-space: normal;
    hyphens: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Fix for integration method radio buttons specifically */
.radio-group .radio-label {
    max-width: 100%;
    overflow: visible;
    padding: 12px 15px;
    min-height: 45px;
    align-items: center;
    display: flex;
    gap: 12px;
}

.radio-group .radio-label span {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

/* Product Format Group Styling */
.product-format-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.product-format-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.product-format-option:last-child {
    border-bottom: none;
}

.product-format-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.product-format-option span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    flex: 1;
}

.product-format-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #C9A34A;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    min-height: 48px;
    text-align: center;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #C9A34A;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #C9A34A;
}

.checkbox-label span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    white-space: nowrap;
}