* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(#ECEFFE, #CED6FB);
}

.target-burger {
    margin-bottom: 50px;
}

.blue {
    color: #0069d9;
}

.orange {
    color: orange;
}

.red {
    color: red;
}

body h2 {
    text-align: center;
}

p {
    margin-top: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

table caption {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table tr:hover {
    background: #f6fbff;
}

.schedule-highlight {
    background: #adceff;
    transition: background 0.2s ease;
}   

.highlight {
    background: #adceff;
    transition: background 0.2s ease;
}

th, td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
}

th {
    background: #34495e;
    color: #fff;
}

#medical-forms {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);    
}

.form-group {
    display: block;
    color: #fff;
    margin-bottom: 14px;
    background: #34495e;
    border: 1px solid #ccc;
    padding: 10px;  
}

h2 {
    color: #34495e;
    margin-bottom: 14px;
}

#form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

#medical-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

textarea {
    resize: none; 
    padding: 15px;
    margin-top: 4px;
    width: 100%;
    border: 1px solid #bbb;
    border-radius: 4px;
}

input, select{
    padding: 10px;
    margin-top: 4px;
    width: 100%;
    border: 1px solid #bbb;
    border-radius: 4px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

input[type="date"], select{
  padding: 10px;              
  font-size: 16px;            
  border: 1.8px solid #ccc;   
  border-radius: 6px;         
  background-color: #fff;     
  color: #000;                
  outline: none;              
  box-sizing: border-box;     
}

input[type="date"]:focus {
  border-color: #007bff;
}

input {
    border-left: 4px solid #3498db;
}

.input-control input,
.input-control select,
.input-control textarea {
    padding: 8px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-control.error input,
.input-control.error select,
.input-control.error textarea {
    border-color: red;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    border: 2px solid red;
}

.input-control.success input,
.input-control.success select,
.input-control.success textarea {
  border-color: #2ecc71;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.input-control.success input {
    border: 2px solid green;
}
  
.input-control.error input {
    border: 2px solid red;
}
  
.input-control .error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}  

#allergies, #medications, #pregnancy {
    padding: 20px;
    margin-top: 5px;
}

#conditions {
    margin-top: 25px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 1px solid #2980b9;
    box-shadow: 0 0 4px rgba(38, 123, 179, 0.5);
}

input.error-border,
textarea.error-border,
select.error-border {
  border:red;
}

button {
    padding: 10px 20px;
    background-color: #34495e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #2c3e50;
}

#footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

footer {
    background: #34495e;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
}

@media (min-width: 1025px) {
    .container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-top: 50px;
    }

    h1 {
        margin-left: 25px;
    }
}