/**
 * Public Styles for BodyGard Warranty System
 */

/* Import Instrument Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Colors */
    --bgw-primary-color: #FFB81C;
    --bgw-primary-hover: #e5a518;
    --bgw-secondary-color: #333;
    --bgw-secondary-hover: #000;
    --bgw-text-color: #333;
    --bgw-text-light: #666;
    --bgw-border-color: #ddd;
    --bgw-border-focus: var(--bgw-primary-color);
    --bgw-background: #fff;
    --bgw-background-alt: #f9f9f9;
    --bgw-background-hover: #fffbf0;
    
    /* Success/Error Colors */
    --bgw-success-bg: #e8f5e9;
    --bgw-success-border: #4caf50;
    --bgw-success-text: #1b5e20;
    --bgw-error-bg: #ffebee;
    --bgw-error-border: #f44336;
    --bgw-error-text: #b71c1c;
    --bgw-info-bg: #e3f2fd;
    --bgw-info-border: #2196f3;
    --bgw-info-text: #0d47a1;
    
    /* Typography */
    --bgw-font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --bgw-font-size-base: 15px;
    --bgw-font-size-small: 13px;
    --bgw-font-size-large: 16px;
    --bgw-font-size-h3: 22px;
    --bgw-font-size-h4: 18px;
    
    /* Spacing */
    --bgw-spacing-xs: 8px;
    --bgw-spacing-sm: 12px;
    --bgw-spacing-md: 20px;
    --bgw-spacing-lg: 30px;
    --bgw-spacing-xl: 40px;
    
    /* Border Radius */
    --bgw-radius-sm: 4px;
    --bgw-radius-md: 6px;
    --bgw-radius-lg: 8px;
    --bgw-radius-xl: 12px;
    --bgw-radius-round: 50%;
    
    /* Shadows */
    --bgw-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --bgw-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --bgw-shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    
    /* Transitions */
    --bgw-transition: all 0.3s ease;
    --bgw-transition-fast: all 0.2s ease;
}

/* Base Font - Scoped to plugin containers */
.bgw-warranty-form-container *:not(.dashicons):not([class*="dashicons-"]),
.bgw-warranty-lookup-container *:not(.dashicons):not([class*="dashicons-"]),
.bgw-success-page *:not(.dashicons):not([class*="dashicons-"]),
.bgw-error-page *:not(.dashicons):not([class*="dashicons-"]) {
    font-family: var(--bgw-font-family) !important;
}

/* Ensure Dashicons work properly within plugin containers */
.bgw-warranty-form-container .dashicons,
.bgw-warranty-form-container [class*="dashicons-"],
.bgw-warranty-lookup-container .dashicons,
.bgw-warranty-lookup-container [class*="dashicons-"],
.bgw-success-page .dashicons,
.bgw-success-page [class*="dashicons-"],
.bgw-error-page .dashicons,
.bgw-error-page [class*="dashicons-"] {
    font-family: dashicons !important;
}

/* Container */
.bgw-warranty-form-container,
.bgw-warranty-lookup-container {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Form Sections */
.bgw-form-section {
    background: var(--bgw-background) !important;
    border-radius: var(--bgw-radius-lg) !important;
    padding: var(--bgw-spacing-lg) !important;
    margin-bottom: var(--bgw-spacing-md) !important;
    box-shadow: var(--bgw-shadow-sm) !important;
}

.bgw-form-section h3 {
    margin: 0 0 var(--bgw-spacing-md) 0 !important;
    font-size: var(--bgw-font-size-h3) !important;
    color: var(--bgw-text-color) !important;
    border-bottom: 2px solid var(--bgw-primary-color) !important;
    padding-bottom: 10px !important;
    font-weight: 600 !important;
    font-family: var(--bgw-font-family) !important;
}

/* Form Grid */
.bgw-form-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.bgw-form-field {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.bgw-form-field.bgw-full-width {
    grid-column: 1 / -1 !important;
}

.bgw-form-field label {
    font-weight: 600 !important;
    margin-bottom: var(--bgw-spacing-xs) !important;
    color: var(--bgw-text-color) !important;
    font-size: 14px !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-form-field label .required {
    color: #d32f2f !important;
}

.bgw-form-field input[type="text"],
.bgw-form-field input[type="email"],
.bgw-form-field input[type="tel"],
.bgw-form-field input[type="number"],
.bgw-form-field input[type="date"],
.bgw-form-field select,
.bgw-form-field textarea {
    padding: var(--bgw-spacing-sm) !important;
    border: 2px solid var(--bgw-border-color) !important;
    border-radius: var(--bgw-radius-md) !important;
    font-size: var(--bgw-font-size-base) !important;
    transition: var(--bgw-transition) !important;
    font-family: var(--bgw-font-family) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: white !important;
    height: auto !important;
}

.bgw-form-field input:focus,
.bgw-form-field select:focus,
.bgw-form-field textarea:focus {
    outline: none !important;
    border-color: var(--bgw-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2) !important;
}

.bgw-form-field .field-suffix {
    margin-top: 5px !important;
    font-size: var(--bgw-font-size-small) !important;
    color: var(--bgw-text-light) !important;
}

.bgw-form-field .field-description {
    margin-top: 5px !important;
    font-size: var(--bgw-font-size-small) !important;
    color: var(--bgw-text-light) !important;
}

/* Product Repeater */
.bgw-product-item {
    background: var(--bgw-background-alt) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: var(--bgw-radius-lg) !important;
    padding: var(--bgw-spacing-md) !important;
    margin-bottom: var(--bgw-spacing-md) !important;
}

.bgw-product-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: var(--bgw-spacing-md) !important;
}

.bgw-product-header h4 {
    margin: 0 !important;
    color: var(--bgw-primary-color) !important;
    font-size: var(--bgw-font-size-h4) !important;
    font-weight: 600 !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-remove-product {
    background: var(--bgw-error-border) !important;
    color: white !important;
    border: none !important;
    padding: var(--bgw-spacing-xs) 16px !important;
    border-radius: var(--bgw-radius-sm) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: var(--bgw-transition) !important;
    font-family: var(--bgw-font-family) !important;
    font-weight: 500 !important;
}

.bgw-remove-product:hover {
    background: var(--bgw-error-text) !important;
}

/* Product Validation Status */
.bgw-product-validation-status {
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* Areas Container */
.bgw-areas-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    border: 2px solid var(--bgw-border-color) !important;
    padding: 20px !important;
    border-radius: var(--bgw-radius-lg) !important;
    background: var(--bgw-background-alt) !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bgw-area-section h5 {
    margin: 0 0 12px 0 !important;
    color: var(--bgw-primary-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid var(--bgw-primary-color) !important;
    font-family: var(--bgw-font-family) !important;
}

/* Checkbox Grid */
.bgw-checkbox-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    padding-right: 5px !important;
}

.bgw-checkbox-grid label {
    display: flex !important;
    align-items: center !important;
    padding: var(--bgw-spacing-xs) !important;
    background: var(--bgw-background) !important;
    border: 1px solid var(--bgw-border-color) !important;
    border-radius: var(--bgw-radius-sm) !important;
    cursor: pointer !important;
    transition: var(--bgw-transition-fast) !important;
    font-family: var(--bgw-font-family) !important;
    font-size: 14px !important;
}

.bgw-checkbox-grid label:hover {
    background: var(--bgw-background-hover) !important;
    border-color: var(--bgw-primary-color) !important;
}

.bgw-checkbox-grid input[type="checkbox"] {
    margin-right: 8px !important;
}

/* Buttons */
.bgw-button {
    display: inline-block !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: var(--bgw-radius-md) !important;
    font-size: var(--bgw-font-size-large) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--bgw-transition) !important;
    text-decoration: none !important;
    text-align: center !important;
    font-family: var(--bgw-font-family) !important;
    box-sizing: border-box !important;
}

.bgw-button-primary {
    background: var(--bgw-primary-color) !important;
    color: var(--bgw-secondary-color) !important;
}

.bgw-button-primary:hover {
    background: var(--bgw-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 184, 28, 0.4) !important;
    color: var(--bgw-secondary-color) !important;
}

.bgw-button-secondary {
    background: var(--bgw-secondary-color) !important;
    color: white !important;
}

.bgw-button-secondary:hover {
    background: var(--bgw-secondary-hover) !important;
    color: white !important;
}

/* Form Actions */
.bgw-form-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 24px !important;
}

/* Messages */
#bgw-form-messages,
#bgw-lookup-messages {
    margin: 20px 0 !important;
    padding: 0 !important;
}

.bgw-message {
    padding: 14px 18px !important;
    border-radius: var(--bgw-radius-md) !important;
    margin-bottom: var(--bgw-spacing-xs) !important;
    font-size: var(--bgw-font-size-base) !important;
    display: block !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-message-success {
    background: var(--bgw-success-bg) !important;
    border-left: 4px solid var(--bgw-success-border) !important;
    color: var(--bgw-success-text) !important;
}

.bgw-message-error {
    background: var(--bgw-error-bg) !important;
    border-left: 4px solid var(--bgw-error-border) !important;
    color: var(--bgw-error-text) !important;
}

.bgw-message-info {
    background: var(--bgw-info-bg) !important;
    border-left: 4px solid var(--bgw-info-border) !important;
    color: var(--bgw-info-text) !important;
}

/* Loader */
.bgw-form-loader {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: var(--bgw-spacing-xl) 60px !important;
    border-radius: var(--bgw-radius-xl) !important;
    box-shadow: var(--bgw-shadow-lg) !important;
    z-index: 10000 !important;
    text-align: center !important;
}

.bgw-spinner {
    width: 60px !important;
    height: 60px !important;
    border: 5px solid #f3f3f3 !important;
    border-top: 5px solid var(--bgw-primary-color) !important;
    border-radius: var(--bgw-radius-round) !important;
    animation: spin 0.8s linear infinite !important;
    margin: 0 auto var(--bgw-spacing-md) !important;
}

.bgw-form-loader p {
    margin: 0 !important;
    font-size: var(--bgw-font-size-large) !important;
    font-weight: 600 !important;
    color: var(--bgw-text-color) !important;
    font-family: var(--bgw-font-family) !important;
}

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

/* Overlay when form is submitting */
.bgw-form-submitting {
    pointer-events: none !important;
    opacity: 0.5 !important;
}

/* Lookup Results */
.bgw-lookup-results {
    background: #fff !important;
    border-radius: 8px !important;
    padding: 30px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin-top: 30px !important;
}

.bgw-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.bgw-result-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.bgw-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.bgw-status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.bgw-status-badge.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.bgw-result-section {
    margin-bottom: 30px;
}

.bgw-result-section h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #FFB81C;
}

.bgw-product-info {
    margin-bottom: 25px !important;
}

.bgw-product-info h5 {
    margin: 0 0 15px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-result-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.bgw-result-table tr {
    border-bottom: 1px solid #e0e0e0 !important;
}

.bgw-result-table th {
    text-align: left !important;
    padding: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    width: 200px !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-result-table td {
    padding: 12px !important;
    color: #333 !important;
    font-family: var(--bgw-font-family) !important;
}

.bgw-result-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 30px !important;
}

/* Images Grid */
.bgw-images-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
}

.bgw-images-grid .bgw-image-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bgw-images-grid .bgw-image-item:hover {
    transform: scale(1.05);
}

.bgw-images-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Dropzone Styling */
.bgw-dropzone-area {
    border: 2px dashed var(--bgw-border-color);
    border-radius: var(--bgw-radius-lg);
    background: var(--bgw-background-alt);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--bgw-transition-fast);
    min-height: 200px;
}

.bgw-dropzone-area:hover {
    border-color: var(--bgw-primary-color);
    background: var(--bgw-background-hover);
}

.bgw-dropzone-area .dz-message {
    margin: 40px 0;
}

.bgw-dropzone-area .dz-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--bgw-primary-color);
    margin-bottom: 12px;
}

.bgw-dropzone-area .dz-message h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--bgw-text-primary);
    margin: 0 0 8px 0;
}

.bgw-dropzone-area .dz-message p {
    font-size: 13px;
    color: var(--bgw-text-secondary);
    margin: 0;
}

/* Dropzone has files - change to grid layout */
.bgw-dropzone-area.dz-started .dz-message {
    display: none;
}

.bgw-dropzone-area .dz-preview {
    display: inline-block;
    margin: 8px;
    vertical-align: top;
    position: relative;
}

.bgw-dropzone-area .dz-preview .dz-image {
    border-radius: var(--bgw-radius-sm);
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 2px solid var(--bgw-border-color);
}

.bgw-dropzone-area .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bgw-dropzone-area .dz-preview .dz-details {
    display: none !important;
}

.bgw-dropzone-area .dz-preview .dz-progress {
    display: none !important;
}

.bgw-dropzone-area .dz-preview .dz-success-mark,
.bgw-dropzone-area .dz-preview .dz-error-mark {
    display: none !important;
}

.bgw-dropzone-area .dz-preview .dz-remove {
    display: inline-block !important;
    margin-top: 6px;
    font-size: 11px;
    font-family: var(--bgw-font-family);
    color: #ffffff !important;
    text-decoration: none !important;
    background: #e74c3c !important;
    padding: 6px 12px;
    border-radius: var(--bgw-radius-sm);
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.bgw-dropzone-area .dz-preview .dz-remove:hover {
    background: #c0392b !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
}

.bgw-dropzone-area .dz-error-message {
    font-size: 12px !important;
    font-family: var(--bgw-font-family) !important;
    max-width: 100px !important;
    text-align: center !important;
}

.bgw-dropzone-area .dz-error-message span {
    font-size: 12px !important;
}

.bgw-dropzone-area .dz-preview.dz-error.dz-complete.dz-image-preview {
    text-align: center !important;
}

.bgw-dropzone-area.dz-drag-hover {
    border-color: var(--bgw-primary-color);
    background: var(--bgw-primary-light);
}

/* Error Page */
.bgw-error-page {
    text-align: center;
    padding: var(--bgw-spacing-xl);
    background: var(--bgw-background);
    border-radius: var(--bgw-radius-lg);
    box-shadow: var(--bgw-shadow-md);
    max-width: 600px;
    margin: 60px auto;
}

.bgw-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--bgw-spacing-lg);
    background: #e74c3c !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgw-error-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white !important;
}

.bgw-error-page h2 {
    color: var(--bgw-error-color);
    margin: 0 0 var(--bgw-spacing-md);
}

.bgw-error-page p {
    color: var(--bgw-text-secondary);
    margin: 0 0 var(--bgw-spacing-lg);
}

/* Success Page */
.bgw-success-page {
    padding: var(--bgw-spacing-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgw-success-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bgw-background);
    padding: var(--bgw-spacing-xl);
    border-radius: var(--bgw-radius-lg);
    box-shadow: var(--bgw-shadow-md);
}

.bgw-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--bgw-spacing-lg);
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgw-success-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white !important;
}

.bgw-success-title {
    font-size: 28px;
    color: var(--bgw-text-primary);
    margin: 0 0 var(--bgw-spacing-md);
}

.bgw-success-message {
    font-size: 16px;
    color: var(--bgw-text-secondary);
    margin: 0 0 var(--bgw-spacing-xl);
    line-height: 1.6;
}

.bgw-success-code-box {
    background: var(--bgw-background-alt);
    padding: var(--bgw-spacing-lg);
    border-radius: var(--bgw-radius-md);
    margin-bottom: var(--bgw-spacing-xl);
}

.bgw-success-code-box label {
    display: block;
    font-size: 14px;
    color: var(--bgw-text-secondary);
    margin-bottom: var(--bgw-spacing-sm);
}

.bgw-success-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bgw-spacing-sm);
}

.bgw-success-code span {
    font-size: 24px;
    font-weight: 700;
    color: var(--bgw-primary-color);
    font-family: monospace;
}

.bgw-success-actions {
    margin-bottom: var(--bgw-spacing-xl);
}

.bgw-success-actions .bgw-button {
    display: inline-flex;
    align-items: center;
    gap: var(--bgw-spacing-xs);
}

.bgw-success-info {
    text-align: left;
    background: #e8f5e9;
    padding: var(--bgw-spacing-lg);
    border-radius: var(--bgw-radius-md);
    margin-bottom: var(--bgw-spacing-xl);
}

.bgw-success-info h3 {
    margin: 0 0 var(--bgw-spacing-md);
    color: var(--bgw-text-primary);
    font-size: 18px;
}

.bgw-success-info ul {
    margin: 0;
    padding-left: 24px;
    list-style: disc;
}

.bgw-success-info li {
    margin-bottom: var(--bgw-spacing-xs);
    color: var(--bgw-text-secondary);
}

.bgw-success-footer {
    padding-top: var(--bgw-spacing-lg);
    border-top: 1px solid var(--bgw-border-color);
}

/* Copy Warranty Code Button */
.bgw-copy-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bgw-primary-color);
    color: white;
    border: none;
    border-radius: var(--bgw-radius-sm);
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    font-size: 16px;
}

.bgw-copy-code-btn:hover {
    background: var(--bgw-primary-color) !important;
    transform: scale(1.1);
}

.bgw-copy-code-btn:hover .dashicons {
    color: white !important;
}

.bgw-copy-code-btn.copied {
    background: #27ae60;
}

.bgw-copy-code-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: white !important;
}

/* International Phone Input Styling - Scoped to plugin containers */
.bgw-warranty-form-container .iti,
.bgw-warranty-lookup-container .iti {
    width: 100%;
    display: block;
}

.bgw-warranty-form-container .iti__flag-container,
.bgw-warranty-lookup-container .iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 0;
}

.bgw-warranty-form-container .iti__selected-flag,
.bgw-warranty-lookup-container .iti__selected-flag {
    padding: 0 12px 0 8px;
    background-color: var(--bgw-background);
    border-left: 1px solid var(--bgw-border-color);
}

.bgw-warranty-form-container .iti__selected-dial-code,
.bgw-warranty-lookup-container .iti__selected-dial-code {
    font-family: var(--bgw-font-family);
    font-size: 14px;
}

.bgw-warranty-form-container .iti__country-list,
.bgw-warranty-lookup-container .iti__country-list {
    font-family: var(--bgw-font-family);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--bgw-radius-sm);
    border: 1px solid var(--bgw-border-color);
    padding-left: 0 !important;
}

.bgw-warranty-form-container .iti__country,
.bgw-warranty-lookup-container .iti__country {
    padding: 8px 12px;
}

.bgw-warranty-form-container .iti__country:hover,
.bgw-warranty-lookup-container .iti__country:hover {
    background-color: var(--bgw-background-hover);
}

.bgw-warranty-form-container .iti__dial-code,
.bgw-warranty-lookup-container .iti__dial-code {
    color: var(--bgw-text-secondary);
}

.bgw-warranty-form-container .iti input[type="tel"],
.bgw-warranty-lookup-container .iti input[type="tel"] {
    width: 100% !important;
    padding-right: 60px !important;
    font-family: var(--bgw-font-family) !important;
    font-size: 14px !important;
}

/* Override inline padding-left from intl-tel-input.js */
.bgw-warranty-form-container .iti--allow-dropdown input.iti__tel-input,
.bgw-warranty-lookup-container .iti--allow-dropdown input.iti__tel-input {
    padding-left: 81px !important;
}

.bgw-warranty-form-container .iti__selected-country:hover,
.bgw-warranty-lookup-container .iti__selected-country:hover {
    background-color: transparent !important;
    color: inherit !important;
}

.bgw-warranty-form-container .iti input[type="tel"].error,
.bgw-warranty-lookup-container .iti input[type="tel"].error {
    border-color: var(--bgw-error-color) !important;
    background-color: #fff5f5 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bgw-form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .bgw-warranty-form-container,
    .bgw-warranty-lookup-container {
        margin: 20px auto !important;
        padding: 0 10px !important;
    }
    
    .bgw-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .bgw-areas-container {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
    }
    
    .bgw-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .bgw-form-actions,
    .bgw-result-actions {
        flex-direction: column;
    }
    
    .bgw-button {
        width: 100%;
    }
    
    .bgw-result-table th {
        width: 120px;
        font-size: 13px;
    }
}
