/* style.css */

/* Basic reset and box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base font and background */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    color: #374151; /* Dark gray text */
    line-height: 1.6;
    /*background-image: url(https://images.unsplash.com/photo-1539635278303-d4002c07eae3?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE3NDk1Njc4NTB8&ixlib=rb-4.1.0&q=85);*/
    background-image: url(https://takacenter.com/blead/img/photo-blead.jpg);
    background-size: cover;
}

/* Form Container */
.form-container {
    /* max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */


    /* max-width: 1200px;
    min-width: 1000px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    max-width: 1200px;
    min-width: 1000px;
    padding: 40px;
    font-weight: 800;
    margin: 40px auto;
    background: rgba(1, 100, 255, 0.15);
    backdrop-filter: blur(4px) saturate(180%);
    border: 0.0625rem solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    color: black;



}

/* Headings */
h2 {
    text-align: center;
    color: #1f2937; /* Darker gray for headings */
    margin-bottom: 30px;
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #4b5563; /* Medium gray for labels */
    font-size: 0.9rem; /* text-sm */
    font-weight: 500; /* font-medium */
    margin-bottom: 8px;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 8px; /* Rounded input fields */
    box-sizing: border-box; /* Include padding in width */
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="file"] {
    padding-top: 0px; /* Adjust padding for file input */
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb; /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); /* Soft blue shadow on focus */
}

textarea {
    min-height: 80px;
    resize: vertical; /* Allow vertical resizing */
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between options */
}

.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0; /* Override default label margin */
}

input[type="radio"],
input[type="checkbox"] {
    appearance: none; /* Hide default radio/checkbox */
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af; /* Gray border */
    border-radius: 50%; /* Make radio buttons round */
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0; /* Prevent shrinking in flex container */
}

input[type="checkbox"] {
    border-radius: 4px; /* Square for checkboxes */
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #2563eb; /* Blue background when checked */
    border-color: #2563eb;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:checked::after {
    content: '✓'; /* Checkmark for checkboxes */
    display: block;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Error Messages */
.error-message {
    color: #dc2626; /* Red color for errors */
    font-size: 0.875rem; /* text-sm */
    margin-top: 4px;
    padding-left: 2px; /* Small indent */
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.btn-primary {
    background-color: #2563eb; /* Blue */
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* Darker blue on hover */
    transform: translateY(-1px); /* Slight lift effect */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background-color: #1e40af; /* Even darker blue on active */
    transform: translateY(0); /* Press effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6b7280; /* Gray */
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563; /* Darker gray on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    background-color: #374151; /* Even darker gray on active */
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hidden Field Utility */
.hidden-field {
    display: none !important; /* Force hide */
}

/* File Input Custom Styling (Optional, for better visual consistency) */
.file-input {
    background-color: #f9fafb; /* Light background for file input */
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    visibility: hidden;
}
.file-input::before {
    content: 'Choose File';
    display: inline-block;
    background: #e0e7ff; /* Light blue background */
    border: 1px solid #93c5fd; /* Light blue border */
    border-radius: 6px;
    padding: 8px 12px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e40af; /* Dark blue text */
    transition: background-color 0.2s, border-color 0.2s;
}
.file-input:hover::before {
    background-color: #c7d2fe; /* Lighter blue on hover */
    border-color: #60a5fa;
}
.file-input:active::before {
    background-color: #a5b4fc; /* Even lighter blue on active */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .col-span-1.md\:col-span-2 {
        grid-column: auto; /* Reset span for small screens */
    }
    h2 {
        font-size: 1.75rem; /* text-3xl for smaller screens */
    }
}
