.factory-tour-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.factory-tour-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #008c33;
}

.factory-tour-header h2 {
    color: #007cba;
    font-size: 2.5em;
    margin: 0 0 10px 0;
}

.factory-tour-header p {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

.factory-tour-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tour-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #008c33;
}

.tour-section h3 {
    color: #007cba;
    margin-top: 0;
    font-size: 1.3em;
}

.tour-section p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

.factory-tour-footer {
    background: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.factory-tour-footer p {
    margin: 5px 0;
    color: #444;
}

.booking-form-container {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    border: 2px solid #008c33;
}

.booking-form-container h3 {
    color: #008c33;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-field input,
.form-field select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #008c33;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.form-field input:required:invalid {
    border-color: #dc3545;
}

.form-field input.error,
.form-field select.error {
    border-color: #dc3545;
    background-color: #ffe6e6;
}

.form-field input.error:focus,
.form-field select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.book-now-btn {
    background: #008c33;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.book-now-btn:hover {
    background: #005a8a;
}

.book-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#booking-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#booking-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@media (max-width: 768px) {
    .factory-tour-container {
        margin: 10px;
        padding: 15px;
    }
    
    .factory-tour-header h2 {
        font-size: 2em;
    }
    
    .factory-tour-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-form-container {
        padding: 20px;
    }
}