﻿/* formcss.css */

/* Main form container */
/* Main form container */
/* Instructions styling */
/* Datepicker styling for .datepick */
.datepick {
    width: 100%;
    padding: 10px; /* Matches form-input */
    font-size: 16px;
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded corners */
    background-color: #fff;
}

.datepick:focus {
    border-color: #f74f22; /* Orange theme */
    outline: none;
}

/* Flatpickr calendar (minimal) */
.flatpickr-calendar {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.flatpickr-day.selected {
    background-color: #f74f22; /* Orange theme */
    border-color: #f74f22;
    color: #fff;
}

/* Compact spacing */
.form-group:has(.datepick) {
    margin-bottom: 15px; /* Matches existing form-group */
}
.instructions-container {
    margin: 20px 0; /* Reduced from 30px */
    padding: 15px; /* Reduced from 20px */
    background-color: rgba(248, 249, 250, 1); /* Matches .bg-light */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.instructions-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.instructions-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #f74f22;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    transition: transform 0.2s ease, color 0.2s ease;
}

.instructions-list li:hover {
    color: #f74f22;
    transform: translateX(5px);
}

.instructions-list li::before {
    content: '\f058'; /* Font Awesome check-circle icon (requires Font Awesome) */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #f74f22;
    font-size: 20px;
}

.instructions-list li a {
    color: #f74f22;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.instructions-list li a:hover {
    color: #d43f1d;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-container {
        padding: 15px;
    }

    .instructions-title {
        font-size: 24px;
    }

    .instructions-list li {
        font-size: 15px;
        padding-left: 30px;
        margin-bottom: 12px;
    }

    .instructions-list li::before {
        font-size: 18px;
        top: 1px;
    }
}

@media (max-width: 480px) {
    .instructions-container {
        padding: 10px;
    }

    .instructions-title {
        font-size: 20px;
    }

    .instructions-list li {
        font-size: 14px;
        padding-left: 28px;
    }

    .instructions-list li::before {
        font-size: 16px;
    }
}
.form-container {
    width: 100%;
    margin: 10px 0; /* Reduced from 30px to make form sections closer */
    padding: 10px; /* Reduced from 30px for a tighter look */
    background-color: rgba(248, 249, 250, 1); /* Matches .bg-light */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/* Form group for each label-input pair */
.form-group {
    margin-bottom: 10px; /* Reduced from 25px to make textboxes closer */
    display: flex;
    flex-direction: column;
}

/* Styling for labels */
.form-label {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.form-label:hover {
    color: #f74f22;
    transform: translateY(-2px);
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f74f22;
    transition: width 0.3s ease;
}

.form-label:hover::after {
    width: 100%;
}

/* Styling for inputs (textboxes, dropdowns, datepickers) */
.form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.form-input:hover {
    border-color: #f74f22;
    transform: translateY(-1px);
}

.form-input:focus {
    border-color: #f74f22;
    box-shadow: 0 0 8px rgba(247, 79, 34, 0.4);
    transform: translateY(-1px);
}

/* Specific styling for multiline textbox */
.form-input[rows] {
    resize: vertical;
    min-height: 80px;
}

/* Styling for readonly inputs */
.form-input[readonly] {
    background-color: #f1f3f5;
    cursor: not-allowed;
}

/* Medium inputs for date/time and person count */
.form-input-medium {
    width: 200px;
    display: inline-block;
    margin-right: 15px;
}

/* Group for inline inputs like date/time */
.form-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Styling for buttons */
.form-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #f74f22;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-button:hover {
    background-color: #d43f1d;
    transform: translateY(-2px);
}

.form-button-secondary {
    background-color: #6c757d;
}

.form-button-secondary:hover {
    background-color: #5a6268;
}

/* Button group */
.form-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Styling for validation errors */
.form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* GridView styling */
.form-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-grid th,
.form-grid td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.form-grid th {
    background-color: #f74f22;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.form-grid tr:last-child td {
    border-bottom: none;
}

.form-grid tr:nth-child(even) {
    background-color: #f8f9fa;
}

.form-grid .form-input {
    width: 100%;
    max-width: none;
    font-size: 14px;
}

.form-grid-delete {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-grid-delete:hover {
    color: #a71d2a;
}

/* Responsive GridView */
@media (max-width: 768px) {
    .form-grid {
        display: block;
    }

    .form-grid thead {
        display: none;
    }

    .form-grid tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        background-color: #fff;
    }

    .form-grid td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40%;
        padding-right: 15px;
    }

    .form-grid td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 35%;
        font-weight: 600;
        color: #333;
    }

    .form-grid td:last-child {
        border-bottom: none;
    }

    .form-grid .form-input {
        max-width: 100%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-label {
        font-size: 16px;
    }

    .form-input {
        font-size: 14px;
        padding: 10px;
    }

    .form-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .form-input-medium {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input {
        font-size: 13px;
    }

    .form-input-medium {
        width: 100%;
    }

    .form-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-button-group {
        flex-direction: column;
        gap: 10px;
    }
}

