/* Modern Contact Page Styles */
:root {
    --bg: #f0f9ff;
    --panel: #ffffff;
    --accent: #3b82f6;
    --muted: #64748b;
    --text-primary: #1e293b;
    --radius: 16px;
    --max-width: 1000px;
    --gradient-start: #3b82f6;
    --gradient-end: #2563eb;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*{ box-sizing: border-box; }

html,body{
  height:100%;
  margin:0;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color:#0f172a;
}

/* Center everything vertically & horizontally */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg) 0%, #ffffff 100%);
}

/* Main container becomes a centered card */
.contact-container {
    width: 100%;
    max-width: var(--max-width);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
    padding: 3rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Header styling */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.contact-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--muted);
    margin: 1rem 0 0;
    font-size: 1.1rem;
}

/* Contact information layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* Enhanced info card with modern styling */
.contact-info {
    background: linear-gradient(180deg, var(--panel) 0%, rgba(59, 130, 246, 0.02) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.contact-info h2 {
    margin: 0 0 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Modern info items with icons */
.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--panel);
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.info-item .icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.info-item .text {
    flex: 1;
}

.info-item .text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-item .text p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Form controls retained but slightly larger */
label{ display:block; margin-bottom:12px; font-size:0.95rem; color:#0f172a; }
label input, label textarea{
  display:block;
  width:100%;
  margin-top:8px;
  padding:12px;
  border:1px solid #e6e9ef;
  border-radius:10px;
  font-size:0.975rem;
  background:#fff;
}
.required{ color:var(--accent); margin-left:4px; }

.form-actions{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:12px;
}
.btn{
  background:var(--accent);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  font-weight:600;
}
.link-back{ color:var(--accent); text-decoration:none; font-size:0.95rem; }

/* Enhanced notices and errors */
.notice.success {
    background: linear-gradient(to right, #dcfce7, #d1fae5);
    border-left: 4px solid #059669;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: calc(var(--radius) - 4px);
    color: #065f46;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.errors {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #fee2e2, #fecaca);
    border-left: 4px solid #dc2626;
    border-radius: calc(var(--radius) - 4px);
    color: #991b1b;
}

.error-item {
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 900px) {
    body {
        padding: 1rem;
    }
    
    .contact-container {
        padding: 2rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .info-item {
        padding: 1.25rem;
    }
    
    .info-item .icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-container {
    animation: fadeIn 0.6s ease-out;
}

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

/* Fix webkit background clip warning */
.contact-header h1 {
    background-clip: text;
    -webkit-background-clip: text;
}
