/* register.css - สไตล์สำหรับหน้าสมัครสมาชิก */

/* ส่วนขยายจาก combined-login.css สำหรับหน้าสมัครสมาชิก */

.register-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* ส่วนหัวฟอร์ม */
.register-header {
    text-align: center;
    margin-bottom: 25px;
}

/* แบ่งส่วนฟอร์ม */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--public-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* แถวของฟอร์ม */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* Select input */
.input-icon-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.input-icon-wrapper select:focus {
    outline: none;
    border-color: var(--public-primary);
    box-shadow: 0 0 0 3px rgba(34, 87, 122, 0.1);
}

/* Checkbox styling */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-wrapper label {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.4;
}

.checkbox-wrapper a {
    color: var(--public-primary);
    text-decoration: none;
    transition: var(--transition);
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* Required field indicator */
.required {
    color: #dc3545;
    margin-left: 3px;
}

/* Register button */
.btn-register-submit {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--public-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-register-submit i {
    margin-right: 8px;
}

.btn-register-submit:hover {
    background-color: var(--public-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Alert info */
.alert-info {
    background-color: rgba(34, 87, 122, 0.1);
    color: var(--public-primary);
}

/* เพิ่มอนิเมชัน */
.register-form-wrapper {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ส่วนอัปโหลดรูปโปรไฟล์ */
.profile-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    position: relative;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f5f8ff;
    border: 2px dashed var(--public-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-preview i {
    font-size: 2.5rem;
    color: var(--public-primary);
    margin-bottom: 5px;
}

.profile-preview span {
    font-size: 0.8rem;
    color: var(--gray);
}

.profile-preview.has-image i,
.profile-preview.has-image span {
    display: none;
}

.upload-button {
    background-color: var(--public-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.upload-button i {
    margin-right: 5px;
}

.upload-button:hover {
    background-color: var(--public-secondary);
    transform: translateY(-2px);
}

input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .profile-preview {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .register-form-wrapper {
        padding: 0;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
    
    .input-icon-wrapper input,
    .input-icon-wrapper select {
        padding: 10px 15px 10px 40px;
    }
}