* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    padding:0;
    margin: 0;
}


.header {
  background-color: #005C23;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  height: 120px;
  margin-top: 30px;
  margin-bottom: 25px;
  width: 100%;
}

.logo-container {
  flex-shrink: 0;
}

.institute-logo {
  width: 100px;
  height: 100px;
}

.main-text h1 {
  font-size: 35px;
    text-align: center;
  color: #ffffff;
  margin-left: 20px;
  font-weight: normal;
  
  line-height: 1.3;
    margin-left: 250px;
}

.registration-container{
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: 50px;
    display: block;
    margin-left:475px
}
.register-text h1 {
    color: #181818;
    margin-bottom: 10px;
}

.member-text {
    color: #666;
    margin-bottom: 20px;
}

.member-text a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.member-text a:hover {
    text-decoration: underline;
}

/* Form styles */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  
  color: #555;
  background-color: #fff;
}

.form-group select:focus {
  outline: none;
  border-color: #4a8a5b;
}


.form-group label {
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a8a5b;
}


.checkbox-group {
  margin: 10px 0;
}

.checkbox-option {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  line-height: 1.4;
}

/* Hide default checkbox */
.checkbox-option input {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 18px;
  width: 18px;
  cursor: pointer;
}

/* Custom checkbox */
.checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Checked green box */
.checkbox-option input:checked ~ .checkmark {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

/* White tick */
.checkbox-option input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* Button styles */
.register-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    display: inline-flex; 
    justify-content: center;
    align-items: center; 
    min-width: 120px;
}
.register-btn:hover {
    background-color: #036d2b;
}
/* Responsive Header */
@media screen and (max-width: 1024px) {
    .header {
        padding: 0 20px;
        height: 100px;
        margin-top: 25px;
        margin-bottom: 20px;
    }
    
    .institute-logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 28px;
        margin-left: 150px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    
    .institute-logo {
        width: 70px;
        height: 70px;
    }
    
    .header h1 {
        font-size: 24px;
        margin-left: 0;
        line-height: 1.2;
    }
}

@media screen and (max-width: 479px) {
    .header {
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .institute-logo {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 20px;
    }
}
/* Responsive Registration Container */
@media screen and (max-width: 1024px) {
    .registration-container {
        margin: 40px auto;
        margin-left: auto;
        margin-right: auto;
        max-width: 450px;
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .registration-container {
        margin: 30px 150px;
        max-width: 60%;
        padding: 20px;
    }
    
    .register-text h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .member-text {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 479px) {
    .registration-container {
        margin: 20px 65px;
        padding: 15px;
        border-radius: 6px;
    }
    
    .register-text h1 {
        font-size: 22px;
    }
    
    .member-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
}
/* Responsive Form Elements */
@media screen and (max-width: 768px) {
    .registration-form {
        gap: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .checkbox-group {
        margin: 8px 0;
    }
    
    .checkbox-option {
        font-size: 13px;
        padding-left: 28px;
    }
    
    .checkmark {
        height: 16px;
        width: 16px;
        top: 1px;
    }
    
    .checkbox-option input:checked ~ .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
}

@media screen and (max-width: 479px) {
    .registration-form {
        gap: 10px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .checkbox-option {
        font-size: 12px;
        padding-left: 25px;
        line-height: 1.3;
    }
    
    .checkmark {
        height: 14px;
        width: 14px;
    }
}
/* Responsive Button */
@media screen and (max-width: 768px) {
    .register-btn {
        padding: 10px;
        font-size: 15px;
        min-width: 100px;
        margin-top: 8px;
    }
}

@media screen and (max-width: 479px) {
    .register-btn {
        padding: 8px;
        font-size: 14px;
        width: 100%;
    }
}
/* Additional Mobile Optimizations */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }
    
    /* Prevent zoom on iOS input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* High-resolution devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .institute-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header {
        background-color: white !important;
        color: black !important;
    }
    
    .main-text h1 {
        color: black !important;
    }
    
    .registration-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* Form Validation Styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #2ecc71;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input:invalid + .error-message,
.form-group select:invalid + .error-message {
    display: block;
}
/* Loading State */
.register-btn.loading {
    position: relative;
    color: transparent;
}

.register-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
