/* Reset and base styles */
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 100vh; 
  /* --- This is the fix --- */
display: grid;
grid-template-rows: auto 1fr auto; /* Header, Main (stretches), Footer */

}

/* Header and Footer */
header, footer {
text-align: center;
padding: 20px;
background-color: rgba(255, 255, 255, 0.85);
color: #7A1E1E;
font-weight: bold;
/* --- Header link style --- */
.header-link {
  text-decoration: none;
  color: #7A1E1E;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: #7A1E1E;
  text-decoration: underline;
}

}
header h1 {
margin: 0;
}
/* --- Back Arrow Button --- */
.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(122, 30, 30, 0.85), rgba(90, 15, 15, 0.95));
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  color: #7A1E1E; /* Dark blue arrow color */
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-arrow:hover {
  transform: scale(1.1);
  background-color: #7a0000; /* Slightly darker light blue on hover */
}

/* Responsive arrow */
@media (max-width: 768px) {
  .back-arrow {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* Main content area */
main {
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
}

/* 🔽 THIS BLOCK IS UPDATED */
.split-layout {
display: flex;
width: 100%;
gap: 30px;
padding: 40px; /* Adds breathing room */
flex-wrap: wrap; /* Allows wrapping on smaller screens */
align-items: stretch; /* <-- Makes both columns equal height */
justify-content: center; /* <-- Centers them on the page */
}

/* 🔽 THIS BLOCK IS UPDATED */
.image-container {
width: 50%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}

/* 🔽 THIS BLOCK IS UPDATED */
.image-container img {
width: 100%;
height: 100%; /* <-- This makes the image fill the stretched column */
object-fit: cover;
border-radius: 10px;
}
.login-form{
background-color: #fff;
}
.form-container {
    width: 100%;
    max-width: 420px; /* <-- Makes the form smaller */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; 
    justify-self: center; /* <-- ADD THIS LINE TO CENTER IT */
    background-color: #fff;
}
/* 🔽 THIS BLOCK IS UPDATED */
.container {
position: relative; /* <-- ADD THIS LINE */
width: 100%;
background: #ffffff;
padding: 40px;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(47, 79, 117, 0.15);
overflow-y: auto;
display: flex;
flex-direction: column;
justify-content: center;
}
/* Profile Icon at the top */
.profile-icon {
    width: 60px;
    height: 60px;
    background: #7A1E1E; /* Dark blue from screenshot buttons */
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* This negative margin pulls it "up" slightly, overlapping the padding */
    margin-top: -10px; 
}

/* Heading inside container */
h2 {
text-align: center;
margin-bottom: 30px;
color: #7A1E1E;
font-size: 24px;
font-weight: 600;
}

/* Form steps */
.step {
display: none;
text-align: center;
}

.step.active {
display: block;
}
/* Form fields */
.form-group {
margin-bottom: 15px;
text-align: left;
}

label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}

input, select, textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.3s, box-shadow 0.3s;
}

input:hover, select:hover, textarea:hover,
input:focus, select:focus, textarea:focus {
border-color: #7A1E1E;
box-shadow: 0 0 6px rgba(47, 79, 117, 0.2);
outline: none;
}
button {
background: transparent;
color: #990000;
padding: 12px 24px;
font-weight: bold;
font-size: 16px;
border: 1px solid #990000;
border-radius: 6px;
cursor: pointer;
margin-top: 10px;
}

button:hover {
background: #7a0000;
color: #ffffff;
}
input[type="text"], input[type="date"] {
width: 100%;
padding: 10px;
margin-top: 4px;
margin-bottom: 12px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
}
.success-container {
background-color: #f0f8ff;
border: 1px solid #990000;
border-radius: 8px;
padding: 30px;
text-align: center;
max-width: 400px;
margin: 40px auto;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.success-container h2 {
color: #7A1E1E;
margin-bottom: 10px;
}

.success-container p {
font-size: 16px;
margin-bottom: 20px;
}

.success-container button {
background-color: transparent;
color: #990000;
padding: 10px 20px;
border: 1px solid #990000;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
}
/* Pop-up overlay */
.popup {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4); /* Optional dim background */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}

/* Heart-shaped pop-up box */
.popup-content {
background: #fff;
padding: 20px;
border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
border: 2px solid #7A1E1E;
width: 280px;
height: auto; /* Let content define height */
text-align: center;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
position: relative;
}
.close-btn {
position: absolute;
top: 8px;
right: 12px;
font-size: 20px;
cursor: pointer;
color: #7A1E1E;
}
.hidden {
display: none;
}
* {
box-sizing: border-box;
}

/* This is your responsive code for mobile, leave this as is */
@media (max-width: 768px) {
  .split-layout {
flex-direction: column;
align-items: center;
}

  .form-container, .image-container {
width: 100%;
}
}
/* --- Style for the new profile icon --- */
.profile-icon-container {
  text-align: center; /* Centers the icon */
  margin-bottom: 20px; /* Adds space between icon and form fields */
}

.profile-icon-container svg {
  width: 60px;
  height: 60px;
  color: #7A1E1E; /* Matches your theme's blue color */
}
/* --- Styles for Radio Buttons --- */
.radio-button-group {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap to the next line */
  gap: 10px; /* Spacing between buttons */
  margin-top: 10px;
}

/* Hide the actual radio button circle */
.radio-button-group input[type="radio"] {
  display: none;
}

/* Style the label (our new button) */
.radio-button-group label {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #990000;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

/* Style for the label on hover */
.radio-button-group label:hover {
  border: 1px solid #990000;
 background: #7a0000;
 color: #ffffff;
}

/* Style for the label when its radio button is checked */
.radio-button-group input[type="radio"]:checked + label {
  background: #7a0000;
  color: white;
  border: 1px solid #990000;
}
/* --- New rule for 3-column button grid --- */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* This creates 3 equal columns */
}
/* --- Add this to your style.css --- */

/* Styles for invalid form fields */
input.invalid,
select.invalid,
textarea.invalid {
  border-color: #e74c3c; /* Red border */
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.4); /* Red glow */
}

/* Highlights the label for invalid radio groups */
.form-group.invalid > label:first-of-type {
    color: #e74c3c; /* Red label text */
}
/* --- Button Styles --- */
/* (Add this to the bottom of Matrimony/style.css) */

.button-group {
    display: flex;
    justify-content: center; /* Centers the buttons */
    gap: 15px; /* Adds space between them */
    margin-top: 25px;
}

.btn {
    display: inline-block; /* Ensures <a> tags behave like buttons */
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none; /* IMPORTANT: Removes the link underline */
    text-align: center;
    min-width: 150px; /* Gives buttons a uniform size */
    box-sizing: border-box;
}

/* Solid Red Button (Primary) */
.btn-primary {
   background: transparent; /* Makes background see-through */
    color: #990000;         /* Sets text to maroon */
    border: 1px solid #990000;
}

.btn-primary:hover {
    background: #7a0000; 
    border-color: #7a0000;
    color: white; 
}

/* Red Outline Button (Secondary) */
.btn-secondary {
    background: transparent; 
    color: #990000; 
    border: 1px solid #990000; 
}

.btn-secondary:hover {
    background: #990000; 
    color: #ffffff; 
}
/* Custom Modal CSS */
.hidden {
    display: none;
}

#custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1001;
}

#custom-alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 340px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 1002;
    font-family: Arial, sans-serif;
    animation: fadeIn 0.3s ease-out;
}

#custom-alert-box .success-icon {
    margin-bottom: 10px;
}

#custom-alert-box h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

#custom-alert-box p {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

#custom-alert-box button {
    /* Styled to match your "Continue" button */
    background: linear-gradient(135deg, rgba(122, 30, 30, 0.85), rgba(90, 15, 15, 0.95));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.2s;
}

#custom-alert-box button:hover {
    background-color: #8f3333;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
/* --- Mobile Responsive Styles --- */

@media (max-width: 500px) {

    /* Reduces padding on the main body's form holder */
    .form-container {
        padding: 1rem 0.5rem;
    }

    /* Reduces padding inside the white form card */
    .container {
        padding: 25px;
    }

    /* Stacks the buttons vertically on small screens */
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
}