/* Eco Wellness Login Form - Complete & Self-Contained */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #043392;
    --primary-blue-dark: #032467;
    --primary-red: #EC2327;
    --accent-blue: #053cab;
    --text-primary: #043392;
    --text-secondary: rgba(4, 51, 146, 0.7);
    --bg-light: #f8f8f8;
    --success-color: #4caf50;
    --error-color: #ff7043;
    --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);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #032467 0%, #043392 15%, #f8f8f8 75%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Natural Background Elements */
.nature-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(ellipse at center, #4caf50, #66bb6a);
    border-radius: 0 100% 0 100%;
    opacity: 0.4;
    animation: floatLeaf 8s ease-in-out infinite;
}

.leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.leaf-2 {
    top: 60%;
    left: 85%;
    animation-delay: 2s;
    transform: rotate(-30deg);
}

.leaf-3 {
    top: 80%;
    left: 15%;
    animation-delay: 4s;
    transform: rotate(60deg);
}

.leaf-4 {
    top: 30%;
    left: 75%;
    animation-delay: 6s;
    transform: rotate(-45deg);
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); opacity: 0.4; }
    50% { transform: translateY(-20px) rotate(calc(var(--rotation, 0deg) + 10deg)); opacity: 0.7; }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.enrolment-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.wellness-card {
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(4, 51, 146, 0.15);
    border-radius: var(--border-radius-lg);
    padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 100%;
    animation: cardFadeIn 0.6s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enrolment-container .wellness-card {
    max-width: 1200px;
    margin: 0 auto;
}

.organic-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue-dark), var(--primary-blue), var(--primary-red), var(--primary-blue), var(--primary-blue-dark));
    background-size: 300% 100%;
    animation: organicFlow 4s ease-in-out infinite;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: 0 2px 8px rgba(4, 51, 146, 0.3);
}

@keyframes organicFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mindful-header {
    text-align: center;
    margin-bottom: 40px;
}

@keyframes zenBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mindful-header img {
    display: block;
    margin: 0 auto 20px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.mindful-header h1 {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mindful-header p {
    color: var(--text-secondary);
    font-size: clamp(14px, 2vw, 15px);
    font-weight: 400;
    margin-top: 4px;
}

/* Organic Form Fields */
.organic-field {
    position: relative;
    margin-bottom: 32px;
}

.field-nature {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f8f8;
    border: 1.5px solid rgba(7,87,248, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.organic-field input,
.organic-field textarea,
.organic-field select {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 60px 18px 20px;
    color: var(--text-primary);
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 400;
    outline: none;
    position: relative;
    z-index: 2;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.organic-field textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 22px;
}

.organic-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23043392' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.organic-field input::placeholder {
    color: transparent;
}

.organic-field label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 400;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 3;
    background: var(--bg-light);
    padding: 0 8px;
    color: var(--text-secondary);
}

.organic-field input:focus + label,
.organic-field input:not(:placeholder-shown) + label,
.organic-field textarea:focus + label,
.organic-field textarea:not(:placeholder-shown) + label,
.organic-field select:focus + label,
.organic-field select:not([value=""]) + label {
    top: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    transform: translateY(-50%);
}

.organic-field input:focus ~ .field-nature,
.organic-field textarea:focus ~ .field-nature,
.organic-field select:focus ~ .field-nature {
    border-color: var(--accent-blue);
    background: rgba(5, 60, 171, 0.05);
    box-shadow: 0 0 0 3px rgba(5, 60, 171, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.growth-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    z-index: 4;
}

.leaf-sprout {
    width: 100%;
    height: 100%;
    background: #4caf50;
    border-radius: 0 100% 0 100%;
    opacity: 0;
    transform: scale(0) rotate(45deg);
    animation: sproutGrow 0.5s ease-out forwards;
}

.organic-field input:focus ~ .growth-indicator .leaf-sprout,
.organic-field input:valid ~ .growth-indicator .leaf-sprout {
    opacity: 1;
    transform: scale(1) rotate(45deg);
}

@keyframes sproutGrow {
    0% { opacity: 0; transform: scale(0) rotate(45deg); }
    100% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* Nature Toggle */
.organic-field:has(.nature-toggle) input {
    padding-right: 56px;
}

.nature-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #043392;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nature-toggle:hover {
    color: #043392;
    background: rgba(7,87,248, 0.1);
}

.eye-hidden {
    display: none;
}

.nature-toggle.toggle-visible .eye-visible {
    display: none;
}

.nature-toggle.toggle-visible .eye-hidden {
    display: block;
}

.zen-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4caf50;
    font-weight: 500;
}


/* Harmony Button */
.harmony-button {
    width: 100%;
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    margin-bottom: 32px;
    margin-top: 32px;
    overflow: hidden;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-earth {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #053cab;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.enrolment-container .button-earth {
    background: #053cab;
}

.harmony-button:hover:not(:disabled) .button-earth {
    background: var(--primary-blue);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.harmony-button:active:not(:disabled) .button-earth {
    transform: scale(0.98);
}

.harmony-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.harmony-button:disabled .button-earth {
    background: #8d8d8d;
}

@media (hover: none) and (pointer: coarse) {
    .harmony-button:hover:not(:disabled) .button-earth {
        transform: scale(1);
    }
    
    .harmony-button:active:not(:disabled) .button-earth {
        transform: scale(0.97);
    }
}

.button-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.button-growth {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    gap: 6px;
}

.growing-circle {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: organicGrow 1.5s ease-in-out infinite;
}

.circle-2 { animation-delay: 0.2s; }
.circle-3 { animation-delay: 0.4s; }

@keyframes organicGrow {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.6; }
    40% { transform: scale(1.2); opacity: 1; }
}

.harmony-button.loading .button-text {
    opacity: 0;
}

.harmony-button.loading .button-growth {
    opacity: 1;
}

.button-aura {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, rgba(5, 60, 171, 0.4), rgba(4, 51, 146, 0.6));
    border-radius: 23px;
    opacity: 0;
    filter: blur(12px);
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.harmony-button:hover:not(:disabled) .button-aura {
    opacity: 0.7;
    animation: auraPulse 2s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes centerPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
/* Gentle Error */
.gentle-error {
    color: var(--error-color);
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 500;
    margin-top: 6px;
    margin-left: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gentle-error::before {
    content: '⚠';
    font-size: 14px;
    flex-shrink: 0;
}

.gentle-error.show {
    opacity: 1;
    transform: translateY(0);
    animation: errorShake 0.3s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.organic-field.error .field-nature {
    border-color: var(--error-color);
    background: rgba(255, 112, 67, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 112, 67, 0.15);
    animation: errorPulse 0.5s ease-out;
}

@keyframes errorPulse {
    0% { border-color: var(--error-color); }
    50% { border-color: rgba(255, 112, 67, 0.5); }
    100% { border-color: var(--error-color); }
}

.organic-field.error label {
    color: var(--error-color);
}

.organic-field.error input:focus ~ .field-nature,
.organic-field.error textarea:focus ~ .field-nature,
.organic-field.error select:focus ~ .field-nature {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.15);
}

/* Harmony Success */
.harmony-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.harmony-success.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-mandala {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-ring {
    position: absolute;
    border: 2px solid #4caf50;
    border-radius: 50%;
    animation: mandalaGrow 1.2s ease-out forwards;
    opacity: 0;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.ring-2 {
    width: 75px;
    height: 75px;
    top: 7.5px;
    left: 7.5px;
    animation-delay: 0.2s;
}

.ring-3 {
    width: 90px;
    height: 90px;
    top: 0;
    left: 0;
    animation-delay: 0.4s;
}

@keyframes mandalaGrow {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
    100% { opacity: 0.8; transform: scale(1) rotate(360deg); }
}

.mandala-center {
    position: relative;
    z-index: 2;
    color: #4caf50;
    animation: centerBloom 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes centerBloom {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.harmony-success h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.harmony-success p {
    color: #66bb6a;
    font-size: 14px;
}

/* Message Styles */
.message {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1.5px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.message.error {
    background: rgba(255, 112, 67, 0.1);
    border: 1.5px solid rgba(255, 112, 67, 0.3);
    color: #d84315;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    color: #043392;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #043392;
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.8;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.no-subjects {
    grid-column: 1 / -1;
    text-align: center;
    color: #043392;
    padding: 40px;
    font-size: 16px;
    opacity: 0.7;
}

.subject-card {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(4, 51, 146, 0.15);
    border-radius: var(--border-radius-md);
    padding: clamp(16px, 3vw, 24px);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.4s ease-out backwards;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subject-card:nth-child(1) { animation-delay: 0.05s; }
.subject-card:nth-child(2) { animation-delay: 0.1s; }
.subject-card:nth-child(3) { animation-delay: 0.15s; }
.subject-card:nth-child(4) { animation-delay: 0.2s; }
.subject-card:nth-child(5) { animation-delay: 0.25s; }
.subject-card:nth-child(6) { animation-delay: 0.3s; }

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 51, 146, 0.05), transparent);
    transition: left 0.5s ease;
}

.subject-card:hover::before {
    left: 100%;
}

.subject-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.95);
}

.subject-card:active {
    transform: translateY(-2px) scale(0.99);
}

.subject-card.selected {
    border-color: var(--accent-blue);
    background: rgba(5, 60, 171, 0.08);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(5, 60, 171, 0.1);
}

@media (hover: none) and (pointer: coarse) {
    .subject-card:hover {
        transform: none;
    }
    
    .subject-card:active {
        transform: scale(0.98);
    }
}

.subject-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 16px;
}

.subject-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-leaf {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leaf-shape {
    width: 100%;
    height: 100%;
    background: rgba(7, 87, 248, 0.1);
    border: 1.5px solid rgba(7, 87, 248, 0.3);
    border-radius: 0 100% 0 100%;
    transform: rotate(45deg);
    transition: all 0.3s ease;
    position: absolute;
}

.checkbox-leaf svg {
    color: transparent;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    transform: rotate(-45deg);
}

.subject-checkbox input[type="checkbox"]:checked + .checkbox-leaf .leaf-shape {
    background: #043392;
    border-color: #043392;
    box-shadow: 0 0 12px rgba(7, 87, 248, 0.4);
}

.subject-checkbox input[type="checkbox"]:checked + .checkbox-leaf svg {
    color: #ffffff;
}

.subject-checkbox input[type="checkbox"]:checked ~ .subject-info {
    color: #043392;
}

.subject-info {
    flex: 1;
    color: #043392;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.subject-code {
    font-weight: 600;
    font-size: 14px;
    color: #043392;
}

.subject-units {
    font-size: 12px;
    font-weight: 500;
    background: rgba(7, 87, 248, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    color: #043392;
}

.subject-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #043392;
}

.subject-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #043392;
    opacity: 0.7;
}

.detail-item svg {
    color: #043392;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Total Units Display */
.total-units-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(5, 60, 171, 0.08), rgba(4, 51, 146, 0.12));
    border: 2px solid rgba(5, 60, 171, 0.2);
    border-radius: var(--border-radius-sm);
    margin-top: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.total-units-display:hover {
    border-color: rgba(5, 60, 171, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
    transition: transform var(--transition-fast);
}

.units-summary-container {
    margin-top: 24px;
}

.units-summary-container .total-units-display {
    background: linear-gradient(135deg, rgba(5, 60, 171, 0.1), rgba(4, 51, 146, 0.14));
    border: 2px solid rgba(5, 60, 171, 0.25);
    box-shadow: var(--shadow-md);
}

/* Enhanced Message Styles */
.message {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}

.message.success {
    background: rgba(76, 175, 80, 0.12);
    border: 1.5px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.message.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.message.error {
    background: rgba(255, 112, 67, 0.12);
    border: 1.5px solid rgba(255, 112, 67, 0.3);
    color: #d84315;
}

.message.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 1024px) {
    .enrolment-container {
        padding: 16px 0;
    }
    
    .enrolment-container .wellness-card {
        padding: clamp(32px, 5vw, 40px) clamp(24px, 4vw, 32px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
    }
    
    .wellness-card {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mindful-header h1 {
        font-size: 1.75rem;
    }
    
    .organic-field {
        margin-bottom: 24px;
    }
    
    .form-section {
        margin-bottom: 32px;
    }
    
    .total-units-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-top: 24px;
    }
    
    .wellness-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .mindful-header img {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .mindful-header h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .harmony-button {
        min-height: 50px;
        font-size: 15px;
    }
    
    .subject-card {
        padding: 16px;
    }
    
    .subject-name {
        font-size: 15px;
    }
    
    .detail-item {
        font-size: 12px;
    }
    
    .floating-leaf {
        width: 16px;
        height: 16px;
    }
}

/* Tablet Portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .enrolment-container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .wellness-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .harmony-button,
    .nature-toggle {
        display: none;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: rgba(5, 60, 171, 0.2);
    color: var(--text-primary);
}