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

html, body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

body.modal-open {
    overflow: hidden !important;
}

.gradient-bg {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.hero-pattern {
    background-color: #ec4899;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ec4899;
    ring: 2px;
    ring-color: rgba(236, 72, 153, 0.2);
}

.conditional-field {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #ec4899;
    background-color: #fdf2f8;
}

.file-upload-area.dragover {
    border-color: #ec4899;
    background-color: #fdf2f8;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
    display: block;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 1rem;
    padding-right: 2.5rem;
    color: #374151;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
    width: 20px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    transition: all 0.2s;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
    outline: none;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
    outline: none;
}

.select2-container--default .select2-selection--single {
    border-color: #d1d5db !important;
}

.select2-container--default:not(.select2-container--focus):not(.select2-container--open):not(.select2-container--error) .select2-selection--single {
    border-color: #d1d5db !important;
    box-shadow: none;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
    margin-top: -3px;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 4px;
    overflow: hidden;
    z-index: 9999;
}

.select2-container--default .select2-search--dropdown {
    padding: 0.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: calc(100% - 1rem);
    font-size: 0.875rem;
    color: #374151;
    background-color: #ffffff;
    margin: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.select2-container--default .select2-results {
    max-height: 300px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem;
    color: #374151;
    transition: background-color 0.15s;
    cursor: pointer;
}

.select2-container--default .select2-results__option:hover {
    background-color: #f9fafb;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ec4899 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fdf2f8;
    color: #ec4899;
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
    color: #9ca3af;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--single[aria-disabled=true] {
    background-color: #f3f4f6;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.select2-container--default .select2-selection--single[aria-disabled=true] .select2-selection__rendered {
    color: #9ca3af;
}

.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.select2-container--default.select2-container--error .select2-selection--single {
    border-color: #ef4444 !important;
}

.select2-container--default.select2-container--error.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--error.select2-container--open .select2-selection--single {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.select2-container--default {
    display: block;
    max-width: 100%;
}

.max-w-4xl, .max-w-7xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.select2-container--default:not(.select2-container--focus):not(.select2-container--open):not(.select2-container--error) .select2-selection--single {
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

.select2-container--default.select2-container--focus:not(.select2-container--open) .select2-selection--single {
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

