/* 
 * Dojo Kanri Form Styles
 * Combined existing styles with new Association Registration form styles
 */

/* Base form elements - from existing stylesheet */
input, textarea, select {
	box-sizing: border-box;
	width: 200px;
	height: initial;
	padding: 8px 5px;
	border: 1px solid #9a9a9a;
	border-radius: 4px;
}

input[type="checkbox"] {
	width: auto;
	vertical-align: text-bottom;
}

textarea {
	width: 300px;
}

select {
	display: initial;
	height: 30px;
	padding: 2px 5px;
}

button, input[type=submit], input[type=button] {
	padding: 8px 20px;
	font-size: 1em;
	cursor: pointer;
	border-radius: 25px;
	color: #000000;
	background-color: #ffc72c;
	border-color: #ffd98e #ffbe3d #de9300;
}

input[type=submit]:hover {
	background-color: #f7c027;
}

::placeholder {
	color: #bdbfc4;
}

label {
	display: block;
	color: #565656;
}

/* Association Registration Form Container */
.dk-form-box {
    max-width: 800px;
    margin: 0 auto 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Form rows */
.dk-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}

/* Form heading */
.dk-form-heading {
    background-color: #4682B4;
    color: white;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

/* Form elements */
.dk-form-ele {
    flex: 1;
    padding: 0 10px;
}

.dk-form-ele:first-child {
    flex: 0 0 30%;
    text-align: right;
    font-weight: 600;
}

.dk-form-ele:last-child {
    flex: 0 0 65%;
}

/* Adjust input fields in form elements */
.dk-form-ele input,
.dk-form-ele select,
.dk-form-ele textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.dk-form-ele input:focus,
.dk-form-ele select:focus,
.dk-form-ele textarea:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.2);
}

/* Small helper text */
.dk-form-ele small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Button styling inside form elements */
.dk-form-ele button {
    background-color: #4682B4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dk-form-ele button:hover {
    background-color: #3a6d99;
}

/* Secondary button style */
.secondary-button {
    background-color: #6c757d !important;
    color: white !important;
}

.secondary-button:hover {
    background-color: #5a6268 !important;
}

/* Form validation */
.input-valid {
    border-color: #4caf50 !important;
    background-color: #f8fff8 !important;
}

.input-invalid {
    border-color: #f44336 !important;
    background-color: #fff8f8 !important;
}

.field-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Progress bar styling */
.progress-container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 30px;
    max-width: 800px;
    position: relative;
    padding: 0 10px;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

.progress-step.active {
    background-color: #4682B4;
    border-color: #4682B4;
    color: white;
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    color: #555;
    font-weight: normal;
}

/* Message containers */
.success-container,
.error-container,
.info-container {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 4px;
}

.success-container {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.error-container {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.info-container {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

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

/* Info box */
.info-box {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

/* Password strength indicator */
#passwordStrength {
    margin-top: 5px;
    font-weight: bold;
}

/* Link styled as button */
.dk-button {
    display: inline-block;
    background-color: #4682B4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.dk-button:hover {
    background-color: #3a6d99;
    text-decoration: none;
    color: white;
}

/* Preserve existing dk-input-form styles */
.dk-input-form{
	max-width: 500px;
	padding: 20px 12px 10px 20px;
	font: 13px Arial, Helvetica, sans-serif;
	text-align: left;
	vertical-align: center;
}

.dk-input-form-heading{
	font-weight: bold;
	font-style: italic;
	border-bottom: 2px solid #ddd;
	margin-bottom: 20px;
	font-size: 15px;
	padding-bottom: 3px;
	text-align: left;
	vertical-align: center;
}

.dk-input-form label{
	display: block;
	margin: 0px 0px 15px 0px;
}

.dk-input-form label > span{
	width: 100px;
	font-weight: bold;
	float: left;
	padding-top: 8px;
	padding-right: 5px;
}

.dk-input-form span.required{
	color:red;
}
.dk-input-form .tel-number-field{
	width: 40px;
	text-align: center;
}
.dk-input-form input.input-field, .dk-input-form .select-field{
	width: 48%;	
}
.dk-input-form input.input-field, 
.dk-input-form .tel-number-field, 
.dk-input-form .textarea-field, 
 .dk-input-form .select-field{
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	border: 1px solid #C2C2C2;
	box-shadow: 1px 1px 4px #EBEBEB;
	-moz-box-shadow: 1px 1px 4px #EBEBEB;
	-webkit-box-shadow: 1px 1px 4px #EBEBEB;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	padding: 7px;
	outline: none;
}
.dk-input-form .input-field:focus, 
.dk-input-form .tel-number-field:focus, 
.dk-input-form .textarea-field:focus,  
.dk-input-form .select-field:focus{
	border: 1px solid #0C0;
}
.dk-input-form .textarea-field{
	height:100px;
	width: 55%;
}
.dk-input-form input[type=submit],
.dk-input-form input[type=button]{
	border: none;
	padding: 8px 15px 8px 15px;
	background: #FF8500;
	color: #fff;
	box-shadow: 1px 1px 4px #DADADA;
	-moz-box-shadow: 1px 1px 4px #DADADA;
	-webkit-box-shadow: 1px 1px 4px #DADADA;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
}
.dk-input-form input[type=submit]:hover,
.dk-input-form input[type=button]:hover{
	background: #EA7B00;
	color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dk-form-ele:first-child,
    .dk-form-ele:last-child {
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 8px;
    }
    
    .progress-container {
        overflow-x: auto;
        padding-bottom: 35px;
    }
    
    .progress-step::after {
        font-size: 10px;
    }
}