:root {
    /* ✅ Updated to lighter, more subtle blues */
    --primary-color: #3b82f6;        /* Was #2563eb - now lighter */
    --primary-dark: #2563eb;         /* Was #1d4ed8 - now lighter */
    --primary-light: #60a5fa;        /* New lighter variant */
    --primary-subtle: #dbeafe;       /* New very subtle blue */
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

.form-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.claim-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-header {
    color: var(--text-primary);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    opacity: 0.8;
    margin: 0;
    color: var(--text-secondary);
}

.form-body {
    padding: 2rem;
}

/* Section Cards */
.form-section-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-section-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-primary-custom:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* File Upload Styling */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Alert Styling */
.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Submit Section */
.submit-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--info-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 0 0.5rem;
    }
    .form-body {
        padding: 1rem;
    }
    .form-section-card {
        padding: 1.5rem;
    }
    .section-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .auth-code-input {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
    }
}

/* Progress Indicator */
.form-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.row.g-1 {
    --bs-gutter-x: 0.25rem;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

/* Ensure consistent height between select and input */
.form-floating > .form-select,
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .row.g-1 .col-4,
    .row.g-1 .col-8 {
        flex: 0 0 auto;
        width: 30%;
    }
    
    .row.g-1 .col-8 {
        width: 70%;
    }
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.video-thumbnail-container img {
    transition: transform 0.3s ease;
}

.video-thumbnail-container:hover img {
    transform: scale(1.05);
}

.video-thumbnail-container .fa-play-circle {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-thumbnail-container:hover .fa-play-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Loading animation for video thumbnails */
.video-thumbnail-placeholder .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.auth-code-input {
    font-size: 2rem;
    letter-spacing: 1rem;
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.auth-code-input:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.15);
    background: white;
    transform: scale(1.02);
}

/* ✅ Add pulsing animation when input becomes visible */
@keyframes pulse-focus {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.auth-code-input.auto-focused {
    animation: pulse-focus 0.6s ease-in-out;
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}

/* Media Preview Styling */
.media-preview-container {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-preview-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.media-preview-container img,
.media-preview-container video {
    transition: transform 0.3s ease;
}

.media-preview-container:hover img,
.media-preview-container:hover video {
    transform: scale(1.05);
}

/* Video controls styling */
.media-preview-container video::-webkit-media-controls {
    background-color: rgba(0,0,0,0.1);
}

.media-preview-container video::-webkit-media-controls-panel {
    background-color: rgba(0,0,0,0.8);
}

/* File preview cards */
#filePreviewArea .card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#filePreviewArea .card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Badge styling for file types */
.badge {
    font-size: 0.7em;
    padding: 0.35em 0.6em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-preview-container {
        height: 120px !important;
    }
    
    #filePreviewArea .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .media-preview-container {
        height: 100px !important;
    }
}

/* Loading state for images/videos */
.media-preview-container img[src=""],
.media-preview-container video[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.required-field::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

.form-floating label.required-field::after {
    margin-left: 3px;
}

/* Make the asterisk more prominent */
.required-field::after {
    font-size: 1.1em;
    color: #ef4444;
}

/* Enhanced button states */
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-floating.invalid-feedback::after {
    content: "Please enter a valid phone number";
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

/* Progress indicator enhancement */
.form-progress-bar {
    transition: width 0.5s ease, background-color 0.3s ease;
}

.form-progress-bar[style*="100%"] {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%) !important;
}

/* Button hover states */
.btn-secondary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-success:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Form completion indicator */
.form-complete .form-progress-bar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse-success 2s ease-in-out;
}

@keyframes pulse-success {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Required field indicators */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #fbbf24;
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}
.part-item-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.part-item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.part-item-card:first-child {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.part-item-card .item-number {
    color: var(--primary-color);
    font-weight: 700;
}

.remove-part-btn {
    transition: all 0.3s ease;
}

.remove-part-btn:hover {
    transform: scale(1.05);
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Add Part Button */
#addPartBtn {
    border: 2px dashed var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#addPartBtn:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animation for new parts */
.part-item-card.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .part-item-card {
        padding: 1rem;
    }
    
    .part-item-card .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Update the logo styling for light background */
.logo-image {
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Add a subtle shadow to make logo pop */
.company-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* Update the icon color */
.form-header .fa-file-plus {
    color: var(--primary-color);
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .logo-image {
        max-height: 80px;
        max-width: 250px;
    }
    
    .company-logo {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}



/* Logo accessibility improvements */
.logo-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

.logo-link:focus:not(:focus-visible) {
    outline: none;
}

.logo-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


.header-logo-image {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-link:hover .header-logo-image {
    transform: scale(1.02);
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-logo-image {
        height: 24px;
        max-width: 100px;
    }
    
    .selector-label {
        display: none; /* Hide "Language:" text on very small screens */
    }
}

/* ✅ Language Selector Styling (same as claim_customer_view) */
.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.selector-label {
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.selector-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.selector-buttons input[type="radio"] {
    display: none;
}

.selector-option {
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    min-width: fit-content;
}

.selector-option:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.selector-buttons input[type="radio"]:checked + .selector-option {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.selector-option .flag {
    font-size: 1rem;
    filter: brightness(1.1);
}

/* Header Logo Styling */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 4px 8px;
}

.logo-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-logo-image {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    }

.logo-link:hover .header-logo-image {
        transform: scale(1.02);
}

/* Enhanced header bar styling with logo */
.language-selector-bar {
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
    min-height: 50px; /* Ensure consistent height */
}

/* Update the justify-content-end to justify-content-between for proper spacing */
.language-selector-bar .d-flex {
    justify-content: space-between !important;
    align-items: center;
}

/* Subtle hover effect for the entire bar */
.language-selector-bar:hover {
    background: rgba(248, 250, 252, 0.98);
}

/* Logo accessibility improvements */
.logo-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

.logo-link:focus:not(:focus-visible) {
    outline: none;
}

.logo-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-logo-image {
        height: 28px;
        max-width: 120px;
    }
    
    .language-selector-bar .container-fluid {
        padding: 0 0.75rem;
    }
    
    .language-selector-bar .d-flex {
        gap: 0.5rem;
    }
    
    .language-selector {
        gap: 0.5rem;
    }
    
    .selector-buttons {
        padding: 1px;
    }
    
    .selector-option {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-logo-image {
        height: 24px;
        max-width: 100px;
    }
    
    .selector-label {
        display: none; /* Hide "Language:" text on very small screens */
    }
    
    .selector-option {
        padding: 4px 6px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .language-selector {
        gap: 0.25rem;
    }
}

/* Language selector animation */
.selector-option {
    position: relative;
    overflow: hidden;
}

.selector-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.selector-option:hover::before {
    left: 100%;
}

/* Active state enhancement */
.selector-buttons input[type="radio"]:checked + .selector-option {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.selector-buttons input[type="radio"]:checked + .selector-option .flag {
    filter: brightness(1.3) contrast(1.1);
}

/* ✅ Language switching - hide inactive language */
[data-lang="zh"] {
    display: none;
}

body.lang-zh [data-lang="en"] {
    display: none;
}

body.lang-zh [data-lang="zh"] {
    display: block;
}

body.lang-en [data-lang="en"] {
    display: block;
}

body.lang-en [data-lang="zh"] {
    display: none;
}

/* Smooth transitions for language switching */
[data-lang] {
    transition: opacity 0.3s ease;
}

/* ✅ Updated verification section header with lighter blue */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important; /* Lighter gradient */
}

/* ✅ Enhanced button disabled states */
.btn-primary-custom:disabled {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ✅ Visual feedback for auth code input */
.auth-code-input.is-valid {
    border-color: #10b981 !important;
}

.auth-code-input:invalid:not(:placeholder-shown) {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

#verificationErrorCard {
    border: none;
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #b91c3c 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideInDown 0.3s ease-out;
}

#verificationErrorCard .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

#verificationErrorCard .btn-outline-light:hover {
    border-color: white;
    color: #dc3545;
    background: white;
}

/* Animation for error card */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.auth-code-input.error-shake {
    animation: shake 0.6s ease-in-out;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback{
    display: unset;
}

#copyInstallationBtn {
    transition: all 0.3s ease;
    border-style: dashed;
}

#copyInstallationBtn:hover {
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#copyInstallationBtn.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

/* Animation for copied fields */
.field-copied {
    animation: fieldHighlight 0.6s ease-out;
}

@keyframes fieldHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background-color: #d4edda; }
    100% { transform: scale(1); }
}

.editable-field {
    position: relative;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border: 1px dashed transparent;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.editable-field:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editable-field::after {
    content: '\f044'; /* Font Awesome edit icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.75rem;
}

.editable-field:hover::after {
    opacity: 1;
}

/* Input styling when editing */
.inline-edit-input {
    border: 2px solid var(--primary-color);
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.inline-edit-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Save/Cancel buttons */
.edit-buttons {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.edit-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.edit-btn.save {
    background: #28a745;
    color: white;
}

.edit-btn.save:hover {
    background: #218838;
    transform: translateY(-1px);
}

.edit-btn.cancel {
    background: #6c757d;
    color: white;
}

.edit-btn.cancel:hover {
    background: #5a6268;
}

/* Locked field styling */
.locked-field {
    opacity: 0.8;
    background: #f8f9fa;
}

.locked-indicator {
    color: #6c757d;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Mobile-optimized phone input styling */
.phone-input-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 0;
}

.country-code-section .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: white;
}

.phone-number-section .input-group-text {
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #198754;
    min-width: 80px;
    justify-content: center;
}

.phone-number-section .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    font-size: 1.1rem;
    padding: 0.75rem;
}

.phone-number-section .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.country-code-section .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .phone-input-container {
        display: flex;
        gap: 1rem;
        align-items: end;
    }
    
    .country-code-section {
        flex: 0 0 200px;
        margin-bottom: 0 !important;
    }
    
    .phone-number-section {
        flex: 1;
    }
}

/* Mobile specific improvements */
@media (max-width: 767px) {
    .phone-input-container {
        padding: 1rem;
    }
    
    .country-code-section,
    .phone-number-section {
        margin-bottom: 0.75rem;
    }
    
    .phone-number-section {
        margin-bottom: 0;
    }
    
    .form-select,
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Enhanced visual feedback */
.phone-input-container:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}