/* Genel Talep Modal Styles - Device, Experiment, Software, Education vb. için kullanılabilir */
.request-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.request-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 39, 70, 0.75);
    backdrop-filter: blur(4px);
}

.request-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.request-modal-header {
    background:#074d78; /*linear-gradient(135deg, #1a2746 0%, #2d3e5f 100%);*/
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    border-bottom: 3px solid #ffe600;
}

.request-modal-corner {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background: #074d78;
    z-index: 1;
}

.request-modal-corner--left {
    left: 0;
    border-top-left-radius: 20px;
}

.request-modal-corner--right {
    right: 0;
    border-top-right-radius: 20px;
}

.request-modal-icon {
    background: rgba(255, 230, 0, 0.15);
    border: 2px solid #ffe600;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe600;
    flex-shrink: 0;
}

.request-modal-title-section {
    flex: 1;
    color: #fff;
}

.request-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
}

.request-modal-subtitle {
    font-size: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

    .request-modal-subtitle strong {
        color: #ffe600;
        font-weight: 600;
    }

.request-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .request-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .request-modal-close img {
        width: 20px;
        height: 20px;
        transition: all 0.2s ease;
        filter: brightness(0) invert(1); /* Beyaz renk için */
    }

    .request-modal-close:hover img {
        filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(45deg); /* Sarı renk için */
    }

/* Modal Body */
.request-modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

    .request-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .request-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .request-modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 10px;
    }

        .request-modal-body::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

/* Form Styles */
.request-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.request-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #074d78; /*#2d3748;*/
    display: flex;
    align-items: center;
    gap: 8px;
}

    .request-form-label svg {
        color: #074d78; /*#1a2746;*/
    }

.request-required {
    color: #e53e3e;
    font-weight: 700;
}

.request-form-input,
.request-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem !important;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.2s ease;
    background: #f8f9fa;
    text-transform: none !important; /* Prevent capitalize from global CSS */
    color: #1a202c !important; /* Koyu yazı rengi */
}

/* Textarea için özel font boyutu */
.request-form-textarea {
    font-size: 1.2rem !important; /* Yazı boyutu büyütüldü */
    line-height: 1.5; /* Satır aralığı eklendi */
}

    .request-form-input:focus,
    .request-form-textarea:focus {
        outline: none;
        border-color: #ffe600;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.1);
        color: #1a202c !important; /* Focus durumunda da koyu renk */
    }

    .request-form-input::placeholder,
    .request-form-textarea::placeholder {
        color: #a0aec0;
    }

.request-form-textarea {
    resize: vertical;
    min-height: 100px;
    font-size: 0.875rem !important; /* Yazı boyutu büyütüldü */
    line-height: 1.5; /* Satır aralığı eklendi */
}

/* Request Dropdown Styles */
.request-dropdown {
    position: relative;
    width: 100%;
}

.request-dropdown-header {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', Arial, sans-serif;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    color: #a0aec0; /* Placeholder rengi (açık gri) */
}

.request-dropdown-header:hover {
    border-color: #cbd5e0;
}

/* Seçilen değer için koyu renk - daha spesifik selector */
.request-dropdown-header.has-selection,
.request-dropdown-header.has-selection span,
.request-dropdown-header.has-selection #selectedInstitutionTextDevice,
.request-dropdown-header.has-selection #selectedInstitutionTextExperiment,
.request-dropdown-header.has-selection #selectedInstitutionTextSoftware,
.request-dropdown-header.has-selection #selectedInstitutionTextEducation {
    color: #1a202c !important; /* Koyu yazı rengi */
}

.request-dropdown-header:hover.has-selection,
.request-dropdown-header:hover.has-selection span,
.request-dropdown-header:hover.has-selection #selectedInstitutionTextDevice,
.request-dropdown-header:hover.has-selection #selectedInstitutionTextExperiment,
.request-dropdown-header:hover.has-selection #selectedInstitutionTextSoftware,
.request-dropdown-header:hover.has-selection #selectedInstitutionTextEducation {
    color: #1a202c !important; /* Hover durumunda sadece seçim varsa koyu renk */
}

.request-dropdown-header.active {
    border-color: #ffe600;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.1);
}

.request-dropdown-header.active.has-selection,
.request-dropdown-header.active.has-selection span,
.request-dropdown-header.active.has-selection #selectedInstitutionTextDevice,
.request-dropdown-header.active.has-selection #selectedInstitutionTextExperiment,
.request-dropdown-header.active.has-selection #selectedInstitutionTextSoftware,
.request-dropdown-header.active.has-selection #selectedInstitutionTextEducation {
    color: #1a202c !important; /* Active durumunda sadece seçim varsa koyu renk */
}

/* En güçlü selector - seçilen değer için */
.request-dropdown-header.has-selection #selectedInstitutionTextDevice,
.request-dropdown-header.has-selection #selectedInstitutionTextExperiment,
.request-dropdown-header.has-selection #selectedInstitutionTextSoftware,
.request-dropdown-header.has-selection #selectedInstitutionTextEducation {
    color: #1a202c !important;
}

.request-dropdown-header i {
    transition: transform 0.2s ease;
    color: #a0aec0;
}

.request-dropdown-header.active i {
    transform: rotate(180deg);
    color: #ffe600;
}

.request-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.request-dropdown-content.show {
    display: block;
}

.request-dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.8rem;
    color: #2d3748;
    font-weight: 500;
}

.request-dropdown-option:hover {
    background-color: #f8f9fa;
}

.request-dropdown-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.request-dropdown-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.request-dropdown.error .request-dropdown-header {
    border-color: #e53e3e !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
}

/* intl-tel-input customization */
.iti {
    width: 100%;
    display: block;
}

.iti__input {
    width: 100%;
    padding: 12px 16px 12px 80px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: 'Inter', Arial, sans-serif !important;
    background: #f8f9fa !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    height: auto !important;
    text-transform: none !important; /* Prevent capitalize from global CSS */
    color: #1a202c !important; /* Koyu yazı rengi */
    -webkit-user-select: none !important; /* Safari */
    -moz-user-select: none !important; /* Firefox */
    -ms-user-select: none !important; /* IE/Edge */
    user-select: none !important; /* Standard */
}

/* Paste işlemini engellemek için ek stil */
.iti__input::selection {
    background: transparent !important;
}

.iti__input::-moz-selection {
    background: transparent !important;
}

.iti__input:focus {
    outline: none !important;
    border-color: #ffe600 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.1) !important;
    color: #1a202c !important; /* Focus durumunda da koyu renk */
}

.iti__input.error {
    border-color: #e53e3e !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
}

.iti__input.error:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
}

.iti__selected-flag {
    padding: 0 0 0 12px !important;
    background-color: transparent !important;
}

.iti__selected-country {
    font-size: 1.2rem !important;
    border-radius: 8px !important;
}

.iti__selected-dial-code {
    margin-right: 4px !important;
    font-size: 0.965rem !important;
    /*font-weight: 500 !important;*/
    margin-bottom: 1.5px !important;
    font-family: 'Jost', normal !important;
    color: #292a2d;
}

.iti__flag-container {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.iti__dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 4px !important;
}

.iti__country:hover {
    background-color: #f8f9fa !important;
}

.iti__country.iti__highlight {
    background-color: #fff5e6 !important;
}

.iti__search-input {
    padding: 8px 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-family: 'Inter', Arial, sans-serif !important;
}

.iti__search-input:focus {
    border-color: #ffe600 !important;
    outline: none !important;
}

.iti--inline-dropdown .iti__dropdown-content {
    border: none !important;
}

.request-form-help {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    margin-top: -4px;
}

/* Info Box */
.request-form-info {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border: 2px solid #bae7ff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 8px;
}

    .request-form-info svg {
        color: #0969da;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .request-form-info strong {
        color: #0969da;
        font-size: 1rem;
        display: block;
        margin-bottom: 6px;
    }

    .request-form-info p {
        margin: 0;
        font-size: 0.95rem;
        color: #074d78; /*#2d3748;*/
        line-height: 1.5;
    }

/* Modal Footer */
.request-modal-footer {
    padding: 20px 32px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.request-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', Arial, sans-serif;
}

.request-btn-primary {
    background: linear-gradient(135deg, #ffe600 0%, #ffd700 100%);
    color: #074d78; /*#1a2746;*/
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.3);
}

    .request-btn-primary:hover {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
        box-shadow: 0 6px 16px rgba(255, 230, 0, 0.4);
        transform: translateY(-2px);
    }

    .request-btn-primary:active {
        transform: translateY(0);
    }

.request-btn-secondary {
    background: #fff;
    color: #074d78; /*#4a5568;*/
    border: 2px solid #e2e8f0;
}

    .request-btn-secondary:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
        color: #2d3748 !important;
    }

/* Loading State */
.request-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

    .request-btn.loading svg {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.request-success-message {
    text-align: center;
    padding: 48px 32px;
}

.request-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.request-success-icon svg {
    width: 48px;
    height: 48px;
}

.request-success-message h3 {
    font-size: 2rem;
    color: #1a2746;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.request-success-message p {
    font-size: 1.2rem;
    color: #718096;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .request-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .request-modal-header {
        padding: 20px;
        gap: 12px;
    }

    .request-modal-icon {
        width: 48px;
        height: 48px;
    }

        .request-modal-icon svg {
            width: 24px;
            height: 24px;
        }

    .request-modal-title {
        font-size: 2rem;
    }

    .request-modal-subtitle {
        font-size: 1.7rem;
    }

    .request-modal-body {
        padding: 20px;
        max-height: calc(95vh - 180px);
    }

    .request-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .request-modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }

    .request-btn {
        width: 100%;
        justify-content: center;
    }

    .request-form-info {
        padding: 14px;
        gap: 10px;
    }
}

/* Animation for form validation errors */
.request-form-input.error,
.request-form-textarea.error {
    border-color: #e53e3e !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
    animation: shake 0.3s ease;
}

    .request-form-input.error:focus,
    .request-form-textarea.error:focus {
        border-color: #e53e3e !important;
        box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.request-form-error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

    .request-form-error-message.show {
        display: block;
    }

/* Dropdown Loading and Error States */
.dropdown-loading,
.dropdown-error,
.dropdown-no-options {
    padding: 12px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.dropdown-loading {
    color: #3b82f6;
}

.dropdown-loading i {
    margin-right: 8px;
}

.dropdown-error {
    color: #ef4444;
}

.dropdown-no-options {
    color: #9ca3af;
    font-style: italic;
}
