/* Global Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0ea5e9;
    --text-color: #333;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Navigation Bar Styles */
.dietitian-navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideInDown 0.5s ease-out;
}

.dietitian-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dietitian-navbar .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dietitian-navbar .logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.dietitian-navbar .logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.dietitian-navbar .nav-links {
    display: flex;
    gap: 30px;
}

.dietitian-navbar .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 3px;
}

.dietitian-navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.dietitian-navbar .nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.dietitian-navbar .nav-links a:hover::after {
    width: 100%;
    animation: expand-line 0.3s ease-out;
}

/* Hero Section */
.dietitian-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(14, 165, 233, 0.8)),
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=2850&q=80');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
    position: relative;
    margin-top: 60px;
    animation: fadeIn 1s ease-out, gradientMove 15s ease infinite;
    background-size: 200% 200%;
}

.dietitian-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(14, 165, 233, 0.4));
    mix-blend-mode: overlay;
}

/* Container Styles */
.dietitian-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.registration-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out;
}

.form-header {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    color: white;
    letter-spacing: -0.5px;
}

.form-header h1 i {
    font-size: 2.2rem;
    color: white;
    margin-right: 8px;
}

.header-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 800px;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.header-decoration {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    margin: 2rem auto 0;
    border-radius: 2px;
    position: relative;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    transform: translateY(-3px);
}

.form-section:hover .section-header i {
    animation: bounce 0.5s ease;
    color: var(--secondary-color);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
}

.section-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    outline: none;
    background-color: white;
    animation: focus-pulse 1s ease;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.required-field::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.field-hint {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.field-hint i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.full-width {
    grid-column: span 2;
}

.registration-form {
    padding: 2.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    transform-origin: center;
    animation: subtle-float 3s ease-in-out infinite;
}

.submit-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
    animation: icon-bounce 0.6s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

/* External Link Card Enhancement */
.external-link-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.external-link-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.external-link-info h3 i {
    color: var(--secondary-color);
}

.external-link-info p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.external-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.external-link span {
    position: relative;
    z-index: 2;
}

.external-link:hover::before {
    left: 100%;
}

.external-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.25);
    background: linear-gradient(135deg, var(--primary-color), #0c4a6e);
}

.external-link i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.external-link:hover i {
    transform: translateX(5px);
    animation: icon-bounce 0.6s ease;
}

.external-link:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .dietitian-navbar .container {
        flex-direction: column;
        gap: 10px;
    }

    .dietitian-navbar .nav-links {
        gap: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .external-link-card {
        padding: 20px;
    }
    
    .external-link {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Staggered animations for form sections */
.form-section:nth-child(1) {
    animation-delay: 0.2s;
}

.form-section:nth-child(2) {
    animation-delay: 0.4s;
}

.form-section:nth-child(3) {
    animation-delay: 0.6s;
}

/* Additional Animation Keyframes */
@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateX(5px); }
    50% { transform: translateX(2px); }
}

@keyframes focus-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

@keyframes expand-line {
    0% { width: 0; opacity: 0.5; }
    100% { width: 100%; opacity: 1; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
} 