.rgcf-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.rgcf-form label {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin-top: 10px;
    display: block;
}

.rgcf-form input,
.rgcf-form textarea,
.rgcf-form select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
   /* border: 2px solid #000000; */
    background-color: #fff;
    color: #000;
    box-sizing: border-box;
    font-size: 16px;
}

.rgcf-form textarea {
    height: 120px;
}

.rgcf-form .form-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.rgcf-form .form-row > div {
    flex: 1;
}

.rgcf-form .submit-button {
    background-color: #000000;
    color: #0B2249;
    border: none;
    padding: 12px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.rgcf-form .submit-button:hover {
    background-color: #B88700;
}

@media (max-width: 600px) {
    .rgcf-form .form-row {
        flex-direction: column;
    }
    .rgcf-form {
        max-width: 100%;
    }
}


#rgcf-response {
    margin-top: 15px;
    font-weight: bold;
}



/* Consent checkbox container */
.rgcf-form .checkbox-container {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    gap: 0; 
    margin-top: 15px;
    margin-bottom:15px;
}

/* Align checkbox input */
.rgcf-form .checkbox-container input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Style consent label */
.rgcf-form .checkbox-container label {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
    margin: 0; /* ensure no margin interfering */
}

/* ========== LOADING SPINNER STYLES ========== */
.rgcf-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 5px;
}

.rgcf-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0B2249;
    border-radius: 50%;
    animation: rgcf-spin 1s linear infinite;
}

.rgcf-loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes rgcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

