/* Style matching temp folder design */

/* Base Page Styling */
* {
    box-sizing: border-box;
}

body {
    background-color: #b8dcfc;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    padding: 0 20px;
}

/* Form Box Styling */
.form-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
}

/* Logo Styling */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

.form-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 500;
    color: #333;
}

.form-description {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 10px;
}

/* Section Heading Styling */
.section-heading {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a4348;
}

.section-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Form Row - for side-by-side fields */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 300;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

/* Append red asterisk to required labels */
label.required::after {
    content: " *";
    color: #dc3545;
}

/* Form Control Styling (matches Bootstrap) */
.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure select dropdowns are styled properly on mobile */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    resize: vertical;
}

/* Date and time inputs - ensure proper styling on mobile */
input[type="date"].form-control,
input[type="time"].form-control {
    min-height: 44px; /* Touch-friendly */
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
}

/* Button Group - Side by Side Layout */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.button-group .btn {
    flex: 1;
}

/* Button Styling */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    min-height: 44px; /* Touch-friendly minimum size */
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: #1a4348;
    border-color: #1a4348;
    color: #fff;
}

.btn-primary:hover {
    background-color: #163d3f;
    border-color: #163d3f;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Message Styling */
.message {
    margin-top: 12px;
    padding: 0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    min-height: 0;
}

.message:not(:empty) {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    margin-top: 12px;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    margin-top: 12px;
}

/* Analyzing/Loading Styling */
#analyzing {
    text-align: center;
    margin: 20px 0;
}

#analyzing img {
    max-height: 30px;
    display: block;
    margin: 0 auto 10px;
}

#analyzing p {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
}
#meeting-room-requested {
    display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
        margin: 15px auto;
    }
    
    .form-box {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .form-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .form-description {
        font-size: 13px;
        padding: 0 5px;
        margin-bottom: 20px;
    }
    
    .section-heading {
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 8px;
    }
    
    .section-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 18px;
    }
    
    .form-group-half {
        margin-bottom: 18px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .btn {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .message {
        font-size: 13px;
        padding: 8px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
        margin: 10px auto;
    }
    
    .form-box {
        padding: 15px 12px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .button-group {
        gap: 8px;
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .form-control {
        padding: 11px;
    }
    
    .section-heading {
        font-size: 17px;
    }
}

/* Very small devices */
@media screen and (max-width: 360px) {
    .form-title {
        font-size: 18px;
    }
    
    .form-description {
        font-size: 12px;
    }
    
    .section-heading {
        font-size: 16px;
    }
    
    .section-description {
        font-size: 12px;
    }
}

/* Tablet and larger screens */
@media screen and (min-width: 769px) {
    .container {
        max-width: 650px;
    }
    
    .form-box {
        max-width: 650px;
    }
}

/* Large desktop screens */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 700px;
    }
    
    .form-box {
        max-width: 700px;
        padding: 35px;
    }
}

