:root {
    --primary-color: #3182ce;
    --secondary-color: #fb923c;
    --background-color: #f7f9fc;
    --card-background: #ffffff;
    --text-color: #2d3748;
    --muted-text-color: #718096;
    --border-color: #e2e8f0;
    --danger-color: #e53e3e;
    --success-color: #38a169;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

.wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.header-card {
    background: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.header-card h1 {
    margin-top: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.header-card p {
    color: var(--muted-text-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* General Form Styles */
.form-group label, 
.chinchilla-item label {
    font-weight: 600;
    color: var(--muted-text-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.form-group input, 
.form-group select,
.chinchilla-item input, 
.chinchilla-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fdfdff;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box; /* Fix for padding issues */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232d3748' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-group input:focus, 
.form-group select:focus,
.chinchilla-item input:focus, 
.chinchilla-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

/* Breeder Info Specifics */
.breeder-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.breeder-info-grid > div {
    display: flex;
    flex-direction: column;
}

/* Chinchilla Styles */
.chinchilla-item {
    background: var(--card-background);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s;
}
.chinchilla-item:hover {
    transform: translateY(-5px);
}

.chinchilla-item > div, .chinchilla-item > fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
    border: none;
    padding: 0;
    margin: 0;
}

.remove-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-btn:hover {
    background-color: #c53030;
    transform: scale(1.1);
}

.add-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.3);
    transition: all 0.2s;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 161, 105, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, #3182ce, #2b6cb0);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(49, 130, 206, 0.4);
}

/* Drop Zone */
.drop-zone-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 40px;
}
@media(min-width: 768px) {
    .drop-zone-container {
        grid-template-columns: auto 1fr;
    }
}
.download-btn {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(251, 146, 60, 0.3);
    transition: all 0.3s;
}
.download-btn:hover {
    background: #f97316;
    color: white;
    transform: translateY(-3px);
}
.drop-zone {
    flex: 1;
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    background: #eff6ff;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone.dragover {
    background: #dbeafe;
    border-color: var(--primary-color);
    transform: scale(1.01);
}
.drop-zone p {
    margin: 0;
    font-size: 1.1rem;
    color: #1e3a8a;
}
