@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;900&display=swap');

*, body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    background-color: #f0f2f5; /* Change background for better contrast with form */
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}


.form-holder {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      min-height: auto;
}

.form-holder .form-content {
    position: relative;
    text-align: center;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 0;
}

.form-content .form-items {
    background-color: #212529; /* Dark background for the form itself */
    border: 1px solid #444; /* Subtle border */
    padding: 0 20px 20px 20px; /* Sadece alttan padding */
    display: inline-block;
    width: 100%;
    /* max-width removed to allow wider form */
    min-width: auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    text-align: left;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    box-sizing: border-box;
    color: #fff; /* Default text color inside form */
}

.form-content h3 {
    color: #1E88E5; /* Lubrico blue for main title */
    text-align: center; /* Center main title */
    font-size: 28px;
    font-weight: 700; /* Bolder title */
    margin-bottom: 15px; /* Adjusted margin */
}

/* Style for the intro paragraph */
.form-content p {
    color: #adb5bd; /* Lighter gray for paragraph */
    text-align: center; /* Center paragraph */
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px; /* More space below paragraph */
}

/* General Label Styling */
.form-content label {
    color: #dee2e6; /* Light gray for labels */
    margin-bottom: .5rem; /* Add space below labels */
    font-weight: 500; /* Slightly bolder labels */
}

/* Input and Select Styling */
.form-content input[type=text],
.form-content input[type=password],
.form-content input[type=email],
.form-content input[type=tel], /* Add tel type */
.form-content select,
.form-content textarea { /* Add textarea */
    width: 100%;
    padding: 10px 15px; /* Adjusted padding */
    text-align: left;
    border: 1px solid #495057; /* Darker border */
    outline: 0;
    border-radius: 6px;
    background-color: #343a40; /* Darker background for inputs */
    font-size: 15px;
    font-weight: 400;
    color: #ced4da; /* Lighter text color for inputs */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 0; /* Remove default margin-top, handled by mb-3 */
}

.form-content input[type=text]:focus,
.form-content input[type=password]:focus,
.form-content input[type=email]:focus,
.form-content input[type=tel]:focus,
.form-content select:focus,
.form-content textarea:focus {
    border-color: #1E88E5; /* Highlight border on focus */
    background-color: #495057; /* Slightly lighter background on focus */
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25); /* Add focus shadow */
}

/* Placeholder text color */
.form-content ::placeholder {
  color: #6c757d;
  opacity: 1; /* Firefox */
}
.form-content :-ms-input-placeholder { color: #6c757d; } /* IE 10-11 */
.form-content ::-ms-input-placeholder { color: #6c757d; } /* Microsoft Edge */


/* Button Styling */
.btn-primary {
    background-color: #1E88E5; /* Lubrico blue */
    border-color: #1E88E5;
    outline: none;
    box-shadow: none;
    padding: 12px 20px;
    font-size: 18px; /* Larger font size */
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1565C0; /* Darker blue on hover/focus */
    border-color: #1565C0;
    outline: none !important;
    box-shadow: none;
}

/* Validation Feedback Styling */
.invalid-feedback {
    color: #f44336; /* Red for errors */
    font-weight: 500;
}

.valid-feedback {
   color: #4CAF50; /* Green for success */
   font-weight: 500;
}

/* Make validation messages more prominent */
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #f44336;
    background-image: none; /* Remove default Bootstrap icon if desired */
}
.was-validated .form-control:valid, .form-control.is-valid {
    border-color: #4CAF50;
    background-image: none; /* Remove default Bootstrap icon if desired */
}
.was-validated .form-select:invalid, .form-select.is-invalid {
    border-color: #f44336;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f44336' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); /* Custom arrow color */
}
.was-validated .form-select:valid, .form-select.is-valid {
    border-color: #4CAF50;
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234CAF50' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); /* Custom arrow color */
}


/* Logo Styling - NO Z-INDEX */
.logo-container {
    position: relative;
    margin: 0;
    padding: 0;
    text-align: center;
}

.logo {
    max-width: 250px;
    height: auto;
}

@media (max-width: 768px) {
    .logo-container {
        position: relative;
        text-align: center;
        padding: 0;
    }
    .logo {
        max-width: 180px;
    }
}
.iti {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
  }

/* Select2 Dark Theme Adjustments - Organized z-index */
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: #343a40;
    border-color: #495057;
    color: #ced4da;
    z-index: 1055 !important; /* Lower z-index than before */
}
.select2-container--bootstrap-5 .select2-results__option {
    color: #ced4da;
    font-size: 13px !important; /* Reduced font size for dropdown options */
    padding: 6px 12px !important; /* Reduced padding for more compact look */
}
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #1E88E5;
    color: #fff;
}
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    background-color: #495057;
    border-color: #6c757d;
    color: #fff;
}
.select2-container--bootstrap-5 .select2-selection--single {
    background-color: #343a40 !important;
    border: 1px solid #495057 !important;
    color: #ced4da !important;
    height: calc(1.5em + 1rem + 2px) !important; /* Match regular input height */
    padding: 0.5rem 0.75rem !important; /* Match regular input padding */
    z-index: auto !important; /* Remove high z-index */
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #ced4da !important;
    line-height: 1.5 !important;
    padding: 0 !important; /* Remove extra padding since parent has padding */
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: #ced4da transparent transparent transparent !important;
}
.select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #ced4da transparent !important;
}
.select2-container--bootstrap-5 .select2-selection--single:focus {
     border-color: #1E88E5 !important;
     box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25) !important;
}

/* Ülke ve dil seçici boyutları düzenleme */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Özel select elemanları için genişlik düzenlemesi */
#preferred_language, #country, .select2-container--bootstrap-5 {
    width: 100% !important;
}

/* Select2 container genişlik kontrolü */
span.select2-container {
    width: 100% !important;
}

/* Select elemanlarının boyutunu sabit tut */
select.form-select {
    width: 100% !important;
}

/* Legend Styling */
fieldset {
    border-color: #495057 !important; /* Darker border for fieldsets */
    margin-bottom: 2rem !important; /* More space between fieldsets */
}
legend.fs-6, /* Target default legend style if class isn't added */
.form-legend { /* Target specific class */
    font-size: 1.1rem !important; /* Larger legend text */
    font-weight: 600 !important; /* Bolder legend text */
    color: #FACC02; /* Sarı renk - Lubrico logo renginde */
    padding: 0.5rem 1rem; /* Add padding */
    background-color: #343a40; /* Dark background for legend */
    border: 1px solid #495057;
    border-radius: 6px;
    margin-bottom: 1.5rem; /* Space below legend */
    width: auto; /* Allow legend to size based on content */
    float: none; /* Override Bootstrap default float */
    display: inline-block; /* Ensure it doesn't take full width unnecessarily */
    max-width: 100%; /* Prevent overflow */
}
.form-legend-description {
    color: #ced4da !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin-bottom: 1rem;
}

/* Product Interest Group Styling */
.product-interest-group .row {
    margin-bottom: 0.75rem; /* Space between product rows */
}
.product-interest-group .form-check-label {
    font-size: 0.95rem; /* Slightly smaller label for products */
    color: #ced4da;
}
.form-check-input:checked {
    background-color: #1E88E5;
    border-color: #1E88E5;
}

/* Alert Message Styling */
#form-message .alert {
    color: #fff; /* White text for alerts */
    border: none;
}
#form-message .alert-success {
    background-color: #198754; /* Bootstrap success green */
}
#form-message .alert-danger {
    background-color: #dc3545; /* Bootstrap danger red */
}
#form-message .btn-close {
    filter: brightness(0) invert(1); /* Make close button white */
    opacity: 1;
}
#form-message .btn-close:hover {
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-content .form-items {
        padding: 30px 20px; /* Adjust padding for smaller screens */
    }
    .form-content h3 {
        font-size: 24px;
    }
    .form-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }
    legend.fs-6, .form-legend {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
     .form-content .form-items {
        padding: 20px 15px;
    }
     .product-interest-group .col-sm-5,
     .product-interest-group .col-sm-7 {
        width: 100%; /* Stack checkbox and input on small screens */
     }
     .product-interest-group .col-sm-7 {
        margin-top: 0.5rem; /* Add space when stacked */
     }

     /* Ensure columns stretch to equal height on medium screens and up */
     .row.g-3 {
        display: flex;
        flex-wrap: wrap;
     }
     .row.g-3 > [class*='col-'] {
        display: flex;
        flex-direction: column;
     }
     .row.g-3 > .col-md-6 > fieldset {
         flex-grow: 1; /* Make fieldset fill the column height */
     }
}

/* Firma Faaliyet Alanı - 3 Selectbox Yanyana */
.activity-field-group {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.activity-field-group > div {
    flex: 1;
    min-width: 120px; /* Mobilde minimum genişlik */
}

.activity-field-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #495057;
    border-radius: 6px;
    background-color: #343a40;
    color: #ced4da;
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.activity-field-group select:focus {
    outline: none;
    border-color: #1E88E5;
    background-color: #495057;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.activity-field-group select option {
    background-color: #343a40;
    color: #ced4da;
    padding: 8px;
}

/* Tablet ve küçük ekranlar için */
@media (max-width: 768px) {
    .activity-field-group {
        gap: 10px;
    }
    
    .activity-field-group > div {
        min-width: 100px;
    }
    
    .activity-field-group select {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Mobil ekranlar için */
@media (max-width: 576px) {
    .activity-field-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .activity-field-group > div {
        flex: none;
        min-width: 100%;
    }
    
    .activity-field-group select {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* Activity selection items styling for multi-select display */
.activity-selection-item {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    padding: 2px 0;
}

/* Select2 Choice Remove Buttons - LIGHT BLUE TRASH ICONS */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    /* Reset everything first */
    all: unset !important;
    /* Then apply only what we need */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    margin-left: auto !important;
    margin-right: 4px !important;
    color: #4db8ff !important; /* Light blue color for visibility */
    font-size: 11px !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
    /* Ensure no background/border styling */
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover {
    color: #1E88E5 !important; /* Darker blue on hover */
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Remove any pseudo-elements that might create circles or X marks */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:before,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:after {
    display: none !important;
    content: none !important;
}

/* Select2 multi-select container styling */
.select2-container--bootstrap-5 .select2-selection--multiple {
    background-color: #343a40 !important;
    border: 1px solid #495057 !important;
    border-radius: 6px;
    min-height: calc(1.5em + 1rem + 2px) !important; /* Match regular input height */
    padding: 0.25rem 0.5rem !important; /* Adjusted padding for multi-select */
    line-height: 1.2 !important;
    overflow: hidden !important; /* Prevent container overflow */
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    position: relative !important; /* Ensure relative positioning for absolute clear button */
}

/* Select2 Clear Button Positioning - BOTTOM RIGHT CORNER */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    position: absolute !important;
    bottom: 4px !important; /* Bottom position */
    right: 4px !important; /* Right position */
    top: auto !important; /* Override default top positioning */
    transform: none !important; /* Remove default centering transform */
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #495057 !important;
    border: 1px solid #6c757d !important;
    color: #dee2e6 !important;
    margin: 1px 2px 1px 0 !important;
    padding: 3px 6px 3px 8px !important;
    border-radius: 3px;
    max-width: 140px; /* Default max width */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px !important;
    line-height: 1.2 !important;
    height: 22px !important;
    overflow: hidden !important; /* Prevent text overflow */
    box-sizing: border-box !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__display {
    color: #dee2e6 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100px; /* Default max width for text */
    flex: 1;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-right: 4px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple {
    border-color: #1E88E5 !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25) !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d !important;
    margin: 4px 0;
    font-size: 14px !important;
}

/* Mobile optimizations for multi-select choices */
@media (max-width: 768px) {
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
        max-width: 100px !important; /* Reduce max width */
        font-size: 10px !important; /* Smaller font */
        padding: 2px 4px 2px 6px !important;
        height: 20px !important;
        margin: 1px 1px 1px 0 !important; /* Reduce margins */
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__display {
        max-width: 75px !important; /* Much smaller display area */
        font-size: 10px !important;
        margin-right: 3px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
        width: 14px !important;
        height: 14px !important;
        font-size: 9px !important;
        margin-right: 2px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple {
        min-height: 32px !important; /* Ensure enough height */
        padding: 3px 4px !important; /* Reset to normal padding */
    }
}

@media (max-width: 576px) {
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
        max-width: 80px !important; /* Even smaller on mobile */
        font-size: 9px !important;
        padding: 2px 3px 2px 4px !important;
        height: 18px !important;
        margin: 1px 1px 1px 0 !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__display {
        max-width: 55px !important; /* Very small display area */
        font-size: 9px !important;
        margin-right: 2px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
        width: 12px !important;
        height: 12px !important;
        font-size: 8px !important;
        margin-right: 2px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection--multiple {
        min-height: 30px !important;
        padding: 2px 3px !important; /* Reset to normal padding */
        line-height: 1.1 !important;
    }
}

.select2-container--bootstrap-5 .select2-selection--multiple:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple {
    border-color: #1E88E5 !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25) !important;
}

