/* agent-RegisterForm1.css */
/* Personal Details Section Styles */

/* Form Group Spacing */
#section-a .form-group {
    margin-bottom: 20px;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Input and Select Styling */
#section-a input[type="text"],
#section-a textarea,
#section-a select {
    width: 100%;
    padding: 10px;
    border: 1px solid #585858;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

/* Specific Styling for Side-by-Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Textarea Styling */
#address {
    resize: vertical;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* Country Select Styling */
#country {
    appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23585858" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 10px center;
    background-color: #fff;
    padding-right: 30px;
}

#country option[value=""][disabled] {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Ensure consistent spacing and sizing */
* {
    box-sizing: border-box;
}

/* Photo Upload Styling */
.photo-upload-container {
    width: 100%;
    max-width: 300px;
    margin-left: 20rem;
}

.photo-upload-box {
    width: 200px;
    height: 250px;
    border: 2px dashed #1a73e8;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.photo-upload-box:hover {
    border-color: #1557b0;
    background-color: #f1f5f9;
}

.photo-upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

#upload-placeholder {
    text-align: center;
    color: #64748b;
}

#upload-placeholder span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#upload-placeholder small {
    font-size: 0.75rem;
}

#photo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Add validation styling */
.photo-upload-box.is-invalid {
    border-color: #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 4px;
}