* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: Gilroy-Bold;
  src: url(../Gilroy-Bold.ttf);
}
@font-face {
  font-family: Gilroy-Medium;
  src: url(../Gilroy-Medium.ttf);
}
@font-face {
  font-family: Gilroy-Semibold;
  src: url(../Gilroy-SemiBold.ttf);
}

body {
  background-image: url(../Background-3.png);
  background-size: cover !important;
  background-attachment: fixed;
  font-family: "Gilroy-Medium", sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.col-md-6 {
    max-width: 600px;
    margin: 1rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 28px;
    color: #348dc3;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Gilroy-Medium', sans-serif;
    font-size: 14px;
    color: #616161;
}

.input-container {
    position: relative;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Gilroy-Medium', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    border: solid 2px RGBA(206, 120, 48, 0.6);
    background-color: #f7f7f7;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #348dc3;
    box-shadow: 0 0 0 3px rgba(52, 141, 195, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.req {
    color: #ce7830;
    margin-left: 0.25rem;
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #348dc3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #2a7aa8;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 141, 195, 0.4);
}

.button-text, .spinner, .checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.spinner, .checkmark {
    opacity: 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 0.25rem;
}

@media screen and (max-width: 600px) {
    .col-md-6 {
        margin: 1rem;
        padding: 1.5rem;
    }
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button-primary {
    background-color: rgba(52, 141, 195, 1);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-primary:hover {
    background-color: rgba(42, 121, 175, 1);
}

.button-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #e0e7ff;
}

.button-primary .spinner,
.button-primary .checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.button-primary:disabled {
    background-color: rgba(175, 201, 220, 1);
    opacity: 0.7;
    cursor: not-allowed;
}