/* Moodle Support Form Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header styles */
header {
    background: #0f6cb9;
    color: white;
    padding: 30px 40px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    padding: 30px 40px;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.half-width {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.required {
    color: #e74c3c;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0f6cb9;
    box-shadow: 0 0 0 2px rgba(15, 108, 185, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="file"] {
    padding: 10px 0;
    border: none;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* Button styles */
button {
    background: #0f6cb9;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    position: relative;
}

button:hover {
    background: #0d5a9c;
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Message area */
.message-area {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Screenshot preview */
.screenshot-preview {
    margin-top: 15px;
}

.screenshot-preview p {
    font-weight: 600;
    margin-bottom: 10px;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Validation styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.error .help-text {
    color: #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header, main {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        flex: none;
    }
}

@media (max-width: 480px) {
    header, main {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    input, textarea, button {
        padding: 10px 12px;
    }
}