/* --- Global & Layout Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9; /* Light background */
    color: #333;
    line-height: 1.6;
    padding: 20px;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS */
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #4a4a4a; /* Darker heading color */
} 

/* --- Header & Logo --- */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    display: block;
    text-decoration: none; /* Remove underline */
}

.logo-image {
    width: auto; /* Adjust the width of the logo */
    height: 60px; /* Maintain aspect ratio */
}

.logo-text{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Consistent font */
    font-size: 36px;
    font-weight: 700;
    fill: #4a4a4a;
}

/* --- Main Form Styles (index.php) --- */
form {
    display: flex;
    flex-direction: column; /* Stack form elements */
    gap: 20px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input[type="file"],
input[type="number"],
select {
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

input[type="file"] {
    padding: 12px;
    border-style: dashed;
    background-color: #fafafa;
    cursor: pointer;
}

input[type="number"],
select { /* Consistent padding */
    padding: 12px;
}

button[type="submit"] {
 background-color: #5c67f2;
    color: white;
    font-weight: bold; /* Bold text */
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    padding: 14px 0;
    font-size: 18px;
    border-radius: 5px;
}
button[type="submit"]:hover {
    background-color: #4a54d1; /* Darken on hover */
}
/* --- General Button Class for Links --- */
.button {
    display: inline-block; /* Make it behave like a block for padding/margin but allow text flow */
    background-color: #5c67f2;
    color: white;
    font-weight: bold; /* Bold text */
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    padding: 14px 25px; /* Added horizontal padding */
    font-size: 18px;
    border-radius: 5px; /* Match other buttons */
    text-decoration: none; /* Remove underline for links */
    margin-top: 15px;
}

.time-inputs {
    display: flex;
    gap: 15px; /* Spacing between time inputs */
    align-items: center;
}

.time-inputs > div {
    flex: 1;
}

/* --- Result & Error Messages --- */
.result, .error {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
}

.result {
 background-color: #e6ffed; /* Light success color */
    border: 1px solid #b7eac9;
}

.result a {
    color: #257942;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.result a:hover {
    text-decoration: underline;
}

.error {
 background-color: #ffebee; /* Light error color */
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.instructions {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px; /* Rounded corners */
    border-left: 5px solid #2196F3;
    margin-bottom: 25px;
    font-size: 15px;
}

/* --- Progress Bar Styles --- */
#progress-container { /* Adjust margins */
 width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    display: none; /* Hidden by default */
}

#progress-bar {
    width: 0%;
    height: 20px;
    background: linear-gradient(90deg, #5c67f2 0%, #4a54d1 100%);
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}

.button:hover {
    background-color: #4a54d1;
} 


/* --- Content & FAQ Section Styles --- */
.content-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.content-section h2 { /* Smaller font size for headings */
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.content-box {
 background-color: #ffffff; /* White background */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.content-box h3 { /* Adjust font size for content box headings */
 margin-top: 0;
    color: #5c67f2;
    font-size: 20px;
}

.content-box p {
    margin-bottom: 1em;
}

.content-box ul { /* Consistent list style */
    padding-left: 20px;
    margin-top: 10px;
    list-style-position: inside;
}

.content-box li {
    margin-bottom: 8px;
}

.image-idea { /* Subtle styling */
    font-style: italic;
    color: #777;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    display: block;
    margin-top: 15px;
    font-size: 14px;
    border-left: 3px solid #ccc;
}

/* --- Interactive FAQ Styles --- */
.faq-item h3 {
    font-size: 18px;
    color: #4a4a4a;
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* Space for icon */
    transition: color 0.2s;
}

.faq-item h3:hover {
    color: #5c67f2;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: #5c67f2;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    margin-bottom: 0; /* Remove default p margin when hidden */
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if answers are very long */
    padding-top: 10px;
}

/* --- Contact Form Styles (contact.php) --- */
.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #f7f7fa;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: linear-gradient(90deg, #5c67f2 0%, #4a54d1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(92,103,242,0.08);
    margin-top: 0.5rem;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    color: #555;
    font-size: 15px;
}

/* --- Footer Styles --- */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-links {
    margin-bottom: 15px;
} 

.footer-links a {
    color: #5c67f2;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
}

.social-links a {
    color: #777;
    text-decoration: none;
    font-size: 14px;
}

.social-links a:hover {
    color: #5c67f2;
}

.copyright {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 640px) { /* Mobile-specific adjustments */
    body {
        padding: 10px;
    }
    .container,
    .content-box,
    .contact-form {
        padding: 20px 15px;
    }
    .logo-image {
        height: 50px; /* Smaller logo on mobile */
    }
 .content-section h2 {
        font-size: 24px;
    }
 .time-inputs {
        flex-direction: column;
  align-items: stretch;
    }
}
