/**
 * Styles for COLVET Miranda Complaint Form
 * Modern, responsive design with veterinary theme
 */

/* CSS Variables */
:root {
    --primary-color: #0d5858;
    --primary-dark: #094040;
    --secondary-color: #0d6e6e;
    --accent-color: #10a0a0;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --error-color: #f56565;
    --success-color: #48bb78;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
}

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo p {
    font-size: 16px;
    opacity: 0.95;
}

/* Form Wrapper */
.form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header .subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.form-header .commission {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
    border-radius: 6px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 122, 123, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row (for side-by-side inputs) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkbox-label:hover,
.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(44, 122, 123, 0.05);
}

.checkbox-label input,
.radio-label input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Evidence List */
.evidence-list {
    list-style: none;
    padding-left: 0;
}

.evidence-list li {
    padding: 10px 10px 10px 35px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
}

.evidence-list li:before {
    content: "✓";
    position: absolute;
    left: 12px;
    color: var(--success-color);
    font-weight: 700;
    font-size: 16px;
}

/* File Upload */
.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(44, 122, 123, 0.05);
}

.file-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item .remove-file {
    color: var(--error-color);
    cursor: pointer;
    font-weight: 700;
    margin-left: 8px;
}

/* Sworn Statement */
.sworn-statement {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #4caf50;
}

.sworn-statement p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.checkbox-accept {
    margin-bottom: 0;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    padding: 18px 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
#messageContainer {
    margin-top: 30px;
}

.message {
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    margin-top: 0;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px;
        border-radius: 0;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo p {
        font-size: 14px;
    }

    .form-wrapper {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-section {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .footer {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .checkbox-label,
    .radio-label {
        padding: 10px 12px;
        font-size: 14px;
    }
}
