/* Tool-Specific Container */
.time-planner-container {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    max-width: 800px;
}

/* Center the Title */
.time-planner-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Input Section */
.input-section {
    padding: 1rem;
    background: #f5f6f5;
    border-radius: 6px;
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-item label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #d81c38;
    font-size: 1rem;
}

.input-item input[type="number"] {
    padding: 0.5rem;
    width: 100%;
    max-width: 120px;
    border: 2px solid #e6e6e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-item input[type="number"]:focus {
    border-color: #f58220;
    outline: none;
}

/* Time Unit Group */
.time-unit-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.time-unit-group input[type="number"] {
    flex: 1;
    max-width: 100px; /* Slightly smaller to fit dropdown */
}

.time-unit-group select {
    padding: 0.5rem;
    border: 2px solid #e6e6e6;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.time-unit-group select:focus {
    border-color: #f58220;
    outline: none;
}

.checkbox-group {
    background: #fff;
    padding: 0.75rem;
    border-radius: 5px;
}

.checkbox-options {
    margin-top: 0.5rem;
}

.checkbox-options input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #f58220;
}

.checkbox-options span {
    color: #333;
    font-weight: 400;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 100%;
    margin: 0.75rem auto 0;
    background: #e6e6e6;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    display: none;
}

#progressBar {
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #d81c38, #f58220);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progress-active {
    display: block;
}

.progress-animate {
    animation: progress 15s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Schedule Output */
#scheduleOutput {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    display: none;
    animation: fadeIn 0.5s ease;
}

#scheduleOutput h2 {
    color: #d81c38;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-day {
    padding: 0.75rem;
    background: #f5f6f5;
    border-radius: 4px;
    border-left: 3px solid #f58220;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.schedule-day strong {
    color: #d81c38;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tablet and Desktop Responsive Design */
@media (min-width: 768px) {
    .time-planner-container {
        padding: 1.5rem;
    }

    .input-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .input-item {
        flex: 1 1 30%;
        min-width: 200px;
    }

    .input-section {
        padding: 1.5rem;
    }

    .progress-container {
        max-width: 250px;
    }

    .schedule-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .schedule-day {
        flex: 1 1 calc(50% - 0.5rem);
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .time-planner-container {
        padding: 2rem;
    }

    .input-item {
        flex: 1 1 25%;
    }

    .input-item input[type="number"] {
        max-width: 140px;
    }

    .time-unit-group input[type="number"] {
        max-width: 120px;
    }

    .checkbox-group {
        padding: 1rem;
    }

    .progress-container {
        max-width: 300px;
    }

    #scheduleOutput {
        padding: 2rem;
    }

    #scheduleOutput h2 {
        font-size: 1.8rem;
    }

    .schedule-day {
        flex: 1 1 calc(33.33% - 0.67rem);
        padding: 1rem;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .time-planner-container {
        padding: 0.75rem;
    }

    .input-section {
        padding: 0.75rem;
    }

    .input-item label {
        font-size: 0.9rem;
    }

    .input-item input[type="number"] {
        max-width: 100px;
    }

    .time-unit-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .time-unit-group input[type="number"] {
        max-width: 100%;
    }

    .time-unit-group select {
        width: 100%;
        max-width: 100px;
    }

    .checkbox-group {
        padding: 0.5rem;
    }

    .progress-container {
        max-width: 100%;
        margin: 0.5rem 0 0;
    }

    #scheduleOutput {
        padding: 0.75rem;
    }

    #scheduleOutput h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .schedule-day {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .schedule-day strong {
        font-size: 0.9rem;
    }
}

/* Media Query for max-width: 600px */
@media (max-width: 600px) {
    /* Tool-Specific Container */
    .time-planner-container {
        padding: 0.75rem;
        margin: 0.5rem auto;
        width: 45%;
        margin: 15px;
    }

    /* Center the Title */
    .time-planner-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Input Section */
    .input-section {
        padding: 0.75rem;
    }

    .input-grid {
        gap: 0.75rem;
    }

    .input-item label {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .input-item input[type="number"] {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    /* Time Unit Group */
    .time-unit-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .time-unit-group input[type="number"] {
        max-width: 100%;
    }

    .time-unit-group select {
        width: 100%;
        max-width: 100%;
    }

    /* Checkbox Group */
    .checkbox-group {
        padding: 0.5rem;
    }

    .checkbox-options span {
        font-size: 0.9rem;
    }

    /* Progress Bar */
    .progress-container {
        max-width: 100%;
        margin: 0.5rem auto 0;
    }

    /* Schedule Output */
    #scheduleOutput {
        padding: 0.75rem;
    }

    #scheduleOutput h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .schedule-grid {
        gap: 0.5rem;
    }

    .schedule-day {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .schedule-day strong {
        font-size: 0.9rem;
    }
}

/* Introducation */

/* IELTS Practice Time Planner Section */
.time-planner {
    background: #ffffff;
    padding: 2rem 1rem;
    margin-top: 20px;
}

.time-planner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.time-planner h1 {
    font-size: 2rem;
    color: #d81c38;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.time-planner p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.time-planner .disclaimer {
    font-size: 0.95rem;
    color: #333;
    background: #f5f6f5;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.time-why, .time-how-to-use, .time-features, .time-sample, .time-trends, .time-tips, .time-cta {
    margin-bottom: 2rem;
}

.time-planner h2 {
    font-size: 1.6rem;
    color: #d81c38;
    margin-bottom: 1rem;
    text-align: center;
}

.features-list, .steps-list, .feedback-list {
    list-style: none;
    padding-left: 0;
}

.features-list li, .steps-list li, .feedback-list li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li:before, .feedback-list li:before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #f58220;
    position: absolute;
    left: 0;
    top: 2px;
}

.steps-list li:before {
    content: counter(step) '.'; /* Numbered list */
    counter-increment: step;
    color: #f58220;
    position: absolute;
    left: 0;
    font-weight: 700;
}

.steps-list {
    counter-reset: step;
}

.time-sample .feedback-list {
    background: #f5f6f5;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.time-cta {
    text-align: center;
}

.time-cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.time-cta .cta-btn {
    background: #f58220;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .time-planner h1 {
        font-size: 2.5rem;
    }

    .time-planner h2 {
        font-size: 1.8rem;
    }

    .features-list, .feedback-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .steps-list {
        max-width: 600px;
        margin: 0 auto;
    }

    .time-cta .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .time-planner {
        padding: 3rem 1rem;
    }

    .time-planner h1 {
        font-size: 3rem;
    }
}