/* SOS Seminar Registration Form Styles */

.sos-seminar-form {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

.sos-seminar-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976D2, #42a5f5, #1976D2);
}

.seminar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e3f2fd;
}

.seminar-header h2 {
    color: #1976D2;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

.seminar-header p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.seminar-header .centered-description {
    text-align: center !important;
    display: block;
    width: 100%;
    margin: 0 auto;
    clear: both;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e3f2fd;
}

.section-title {
    color: #1976D2;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #1976D2;
}

/* Form Rows */
.form-row {
    display: grid;
    gap: 25px;
    margin-bottom: 25px;
}

.names-row {
    grid-template-columns: repeat(3, 1fr);
}

.contact-row {
    grid-template-columns: repeat(2, 1fr);
}

.professional-row {
    grid-template-columns: repeat(2, 1fr);
}

.location-row {
    grid-template-columns: repeat(2, 1fr);
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    font-family: inherit;
    margin-top: 10px;
}

/* Keep intl-tel-input visually consistent with existing inputs (no color changes) */
.iti {
    width: 100%;
}
.iti__flag-container + input#mobile,
.iti input#mobile {
    width: 100% !important;
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding-left: 52px !important; /* space for flag */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.iti input#mobile:focus {
    border-color: #1976D2 !important;
}
.iti__country-list {
    z-index: 9999; /* ensure dropdown is above */
}

/* RTL support for intl-tel-input */
.sos-seminar-form[dir="rtl"] .iti {
    direction: rtl;
}
.sos-seminar-form[dir="rtl"] .iti__flag-container {
    right: 0;
    left: auto;
}
.sos-seminar-form[dir="rtl"] .iti input#mobile {
    padding-right: 52px !important;
    padding-left: 18px !important;
}

/* Override margin-top for phone input container elements */
.phone-input-container {
    margin-top: 10px;
}

.phone-input-container input[type="tel"],
.phone-input-container select {
    margin-top: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976D2;
    border-width: 1px;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #42a5f5;
}

/* Remove default green borders - fields should be neutral by default */
.form-group input,
.form-group select {
    border-color: #e0e0e0;
    background: #fff;
}

/* Error states - only show red border when there's an actual error */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1) !important;
}

/* Success state - only when explicitly set */
.form-group.has-success input,
.form-group.has-success select {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

/* Fee Display */
.fee-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #dee2e6;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.fee-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1976D2, #42a5f5);
}

.fee-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fee-text {
    flex: 1;
    text-align: center;
}

.fee-label {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.fee-amount {
    margin: 0;
    font-size: 32px;
    color: #1976D2;
    font-weight: 700;
    background: linear-gradient(135deg, #1976D2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fee Display Styling */
.fee-amount .base-amount {
    font-weight: bold;
    color: #1976D2;
    font-size: 24px;
}

.fee-amount .vat-text {
    color: #666;
    font-size: 18px;
    font-weight: normal;
}

/* Remove margin-bottom from labels */
.form-group label {
    margin-bottom: 0;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

#submit-seminar-registration {
    background: linear-gradient(135deg, #1976D2, #42a5f5);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

#submit-seminar-registration::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;
}

.rtl #submit-seminar-registration {
    float: none;
}

#submit-seminar-registration:hover::before {
    left: 100%;
}

#submit-seminar-registration:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #1565C0, #1976D2);
}

#submit-seminar-registration:active {
    transform: translateY(-1px);
}

#submit-seminar-registration:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-text {
    font-weight: 600;
}

.button-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

#submit-seminar-registration:hover .button-icon {
    transform: translateX(5px);
}

/* Messages */
.seminar-message {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.seminar-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.seminar-message.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    color: #2e7d32;
    border: 2px solid #c8e6c9;
    display: block;
}

.seminar-message.success::before {
    background: #4CAF50;
}

.seminar-message.error {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    color: #c62828;
    border: 2px solid #ffcdd2;
    display: block;
}

.seminar-message.error::before {
    background: #f44336;
}

.seminar-message.loading {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #1565c0;
    border: 2px solid #bbdefb;
    display: block;
}

.seminar-message.loading::before {
    background: #2196F3;
}

/* Error messages */
.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* Loading spinner - only for submit button */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success and error icons */
.success-checkmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 50%;
    position: relative;
    margin-right: 12px;
    vertical-align: middle;
}

.success-checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
}

.error-cross {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #f44336;
    border-radius: 50%;
    position: relative;
    margin-right: 12px;
    vertical-align: middle;
}

.error-cross::after {
    content: '✕';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
}

/* RTL Support */
.sos-seminar-form[dir="rtl"] {
    text-align: right;
}

.sos-seminar-form[dir="rtl"] .form-group label {
    text-align: right;
}

.sos-seminar-form[dir="rtl"] .seminar-header {
    text-align: center;
}

.sos-seminar-form[dir="rtl"] .section-title::after {
    right: 0;
    left: auto;
}

.sos-seminar-form[dir="rtl"] .fee-content {
    flex-direction: row-reverse;
}

.sos-seminar-form[dir="rtl"] .button-icon {
    transform: rotate(180deg);
}

.sos-seminar-form[dir="rtl"] #submit-seminar-registration:hover .button-icon {
    transform: rotate(180deg) translateX(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sos-seminar-form {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .seminar-header h2 {
        font-size: 26px;
    }
    
    .seminar-header p {
        font-size: 16px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .names-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-row,
    .professional-row,
    .location-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile phone input adjustments */
    .phone-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-code-select {
        width: 100%;
        flex: none;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure inputs are touch-friendly */
    .form-group input,
    .form-group select {
        min-height: 44px; /* iOS minimum touch target */
    }
    
    #submit-seminar-registration {
        padding: 15px 40px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .fee-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .fee-amount {
        font-size: 20px;
    }
}

/* Small phones and very small screens */
@media (max-width: 480px) {
    .sos-seminar-form {
        padding: 20px 15px;
        margin: 10px auto;
        max-width: 98%;
    }
    
    .seminar-header h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .seminar-header p {
        font-size: 14px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .fee-display {
        padding: 20px;
    }
    
    .fee-amount {
        font-size: 18px;
    }
}

/* Animation for fee updates */
.fee-updated {
    animation: feeUpdate 0.6s ease;
}

@keyframes feeUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Success animation */
.form-success {
    animation: successPulse 0.8s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Focus effects */
.form-group.focused {
    transform: translateY(-2px);
}

/* Hover effects for form sections */
.form-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Custom scrollbar for select elements */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px !important;
    text-align: left;
    text-align-last: left;
    color: #333 !important;
    font-weight: 500;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Fix select option padding */
.form-group select option {
    padding: 10px 15px;
    line-height: 1.4;
}

/* Clean, simple styling */

/* Clean, modern form styling */





/* Phone number input */
.phone-number-input {
    flex: 1;
    border: none;
    padding: 15px 18px;
    font-size: 15px;
    background: transparent;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.phone-number-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Remove legacy phone container overrides to avoid style conflicts */

/* Placeholder styling */
.form-group input::placeholder {
    color: #999;
    opacity: 1;
}

.form-group input:focus::placeholder {
    opacity: 0.7;
}

/* Accessibility improvements - simplified */
.form-group input:focus,
.form-group select:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sos-seminar-form {
        border: 2px solid #000;
    }
    
    .form-group input,
    .form-group select {
        border: 2px solid #000;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: #000;
        outline: 3px solid #000;
    }
}

/* Large phones (iPhone 6+, 7+, 8+, Galaxy Note, etc.) */
@media (max-width: 414px) {
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Standard phones (iPhone 6, 7, 8, Galaxy S7, etc.) */
@media (max-width: 375px) {
    .sos-seminar-form {
        padding: 15px 12px;
        margin: 5px auto;
    }
    
    .seminar-header h2 {
        font-size: 20px;
    }
    
    .seminar-header p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* Small phones (iPhone SE, older Android phones) */
@media (max-width: 320px) {
    .sos-seminar-form {
        padding: 12px 10px;
        margin: 2px auto;
        max-width: 99%;
        border-radius: 8px;
    }
    
    .seminar-header h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .seminar-header p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px;
        min-height: 42px;
        border-radius: 6px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    #submit-seminar-registration {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .fee-amount {
        font-size: 18px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .sos-seminar-form {
        padding: 15px;
        margin: 5px auto;
    }
    
    .seminar-header h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .seminar-header p {
        margin-bottom: 15px;
    }
    
    .form-section {
        margin-bottom: 15px;
        padding: 15px;
    }
}

/* High DPI displays (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-group input,
    .form-group select {
        border-width: 1px; /* Crisp borders on high DPI */
    }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .sos-seminar-form {
        background: #1a1a1a;
        color: #ffffff;
        border-color: #333;
    }
    
    .form-group input,
    .form-group select {
        background: #2a2a2a;
        color: #ffffff;
        border-color: #444;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: #4FC3F7;
    }
} */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sos-seminar-form *,
    .sos-seminar-form *::before,
    .sos-seminar-form *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* SCFHS Note Styling */
.scfhs-note-inline {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 2px solid #dc3545;
    margin-left: 8px;
}

/* RTL support for SCFHS note */
[dir="rtl"] .scfhs-note-inline {
    margin-left: 0;
    margin-right: 8px;
    border-left: none;
    border-right: 2px solid #dc3545;
}

/* Arabic language specific styling */
html[lang="ar"] .scfhs-note-inline,
html[lang="ar-DZ"] .scfhs-note-inline,
html[lang="ar-SA"] .scfhs-note-inline {
    margin-left: 0;
    margin-right: 8px;
    border-left: none;
    border-right: 2px solid #dc3545;
}

/* Email confirmation field styling */
.form-group input[type="email"]:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group input[type="email"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Registration Images Gallery */
.seminar-images-section {
    margin: 0 0 40px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 100%;
}

.images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    background: transparent;
    flex: 1;
    min-width: 300px;
    height: 450px;
}

.gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.gallery-item:hover img {
    border-color: #1976D2;
}

/* RTL Support for Images */
.sos-seminar-form[dir="rtl"] .images-gallery {
    direction: rtl;
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .gallery-item {
        height: 500px;
    }
    
    .images-gallery.single-image .gallery-item {
        height: 650px;
    }
    
    .images-gallery.two-images .gallery-item {
        height: 550px;
    }
    
    .image-modal-content {
        max-width: 80%;
        max-height: 80%;
    }
}

/* Responsive Images */
@media (max-width: 768px) {
    .seminar-images-section {
        margin: 0 0 30px 0;
        padding: 0;
    }
    
    .images-gallery {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-item {
        min-width: 100%;
        height: 350px;
    }
    
    .gallery-item img {
        height: 100%;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .seminar-images-section {
        margin: 0 0 20px 0;
        padding: 0;
    }
    
    .gallery-item {
        height: 300px;
        min-width: 100%;
    }
    
    .image-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
}

/* Single Image Layout */
.images-gallery.single-image {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
}

.images-gallery.single-image .gallery-item {
    width: 100%;
    height: 550px;
}

/* Two Images Layout */
.images-gallery.two-images {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.images-gallery.two-images .gallery-item {
    flex: 1;
    height: 790px;
    width: 50%;
}

/* Three or More Images Layout */
.images-gallery.multiple-images {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.images-gallery.multiple-images .gallery-item {
    flex: 1;
    min-width: 33.333%;
    height: 450px;
}

/* Four Images Layout */
.images-gallery.four-images .gallery-item {
    flex: 1;
    min-width: 25%;
    height: 400px;
}

/* Five or More Images Layout */
.images-gallery.many-images .gallery-item {
    flex: 1;
    min-width: 20%;
    height: 350px;
}

/* Image Modal for Zoom */
.image-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Simple image loading */
.gallery-item img {
    opacity: 1;
    transition: border-color 0.3s ease;
}

/* Simple gallery styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.gallery-item:hover {
    border-color: #1976D2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}