:root {
    --primary-blue: #1D61D1;
    --secondary-blue: #0D47A1;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-input: #ffffff;
    --border-color: #e5e7eb;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

.form-container-custom {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.form-header-custom {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.form-header-custom h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.form-header-custom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.form-body {
    padding: 28px;
}

.label-custom {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.hint-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Base Input Style (Grouped with Icon) */
.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    overflow: hidden;
}

.input-group-custom:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-icon-left-custom {
    padding-left: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-group-custom:focus-within .input-icon-left-custom {
    color: var(--primary-color);
}

.input-field-custom {
    width: 100%;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    background: transparent;
}

.input-field-custom::placeholder {
    color: #9ca3af;
}

/* Password Toggle */
.password-toggle-custom {
    padding-right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle-custom:hover {
    color: var(--text-main);
}

/* Custom Select Specific Styles */
.select-wrapper-custom {
    position: relative;
    user-select: none;
}

.select-trigger-custom {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 0px;
    gap: 12px;
}

.select-text-custom {
    flex: 1;
    font-size: 15px;
    color: var(--text-main);
}

.select-arrow-custom {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.select-wrapper-custom.open .select-arrow-custom {
    transform: rotate(180deg);
}

.select-dropdown-custom {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.select-wrapper-custom.open .select-dropdown-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option-custom {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.select-option-custom:hover {
    background-color: #f3f4f6;
}

.select-option-custom.selected {
    color: var(--primary-color);
    background-color: #f5f3ff;
    font-weight: 600;
}

/* Textarea Style */
.textarea-group-custom {
    align-items: flex-start;
}

.textarea-group-custom .input-icon-left-custom {
    padding-top: 14px;
}

.textarea-field-custom {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.btn-submit-custom {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit-custom:hover {
    background-color: var(--primary-hover);
}

/* Customizing Flatpickr theme to match our UI */
.flatpickr-calendar-custom {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    font-family: inherit;
}

.flatpickr-day-custom.selected {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Lucide icon sizing */
i[data-lucide] {
    width: 20px;
    height: 20px;
}

/* --- Buttons Styling --- */
.btn-action {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit {
    background-color: #1e5bb8;
    color: white !important;
}

.btn-submit:hover {
    background-color: #164691;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 91, 184, 0.2);
}

.btn-cancel {
    background-color: #f1f5f9;
    color: #64748b !important;
}

.btn-cancel:hover {
    background-color: #e2e8f0;
    color: #1e293b !important;
}

.total-price {
    text-align: end;
}

.total-price-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.total-price-value {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.5rem;
}