form#cbf-form {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Layout wrapper */
#cbf-form-container {
    max-width: 100%;
    background: #fff;
    border-radius: 20px;
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
	border-width: 1px 1px 1px 1px;
    border-color: #2B15331A;
}

/* Stepper */
#cbf-stepper {
    width: 250px;
    background-color: #f8f8f8;
    border-right: 1px solid #eee;
    padding: 30px 20px;
    box-sizing: border-box;
	display: flex;
    flex-direction: column;
}

#cbf-stepper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#cbf-stepper li {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f1f1f1;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

#cbf-stepper li.active {
    background-color: #d3a33d;
    color: #fff;
}

#cbf-stepper li:hover {
    background-color: #202020;
    color: #fff;
}

/* Steps */
#cbf-steps {
    flex: 1;
    padding: 30px;
    position: relative;
    min-height: 200px;
    box-sizing: border-box;
	border: 1px solid #2B15331A;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-left: none;
}

/* Step states */
.cbf-step {
    display: none;
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}
.cbf-step.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Grid layout for fields */
.cbf-field-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Column widths */
.cbf-col-25  { grid-column: span 3; }
.cbf-col-33  { grid-column: span 4; }
.cbf-col-50  { grid-column: span 6; }
.cbf-col-100 { grid-column: span 12; }

/* Field wrapper */
.cbf-field {
    display: flex;
    flex-direction: column;
}

.cbf-field label {
    font-weight: 500;
    margin-bottom: 5px;
}

.cbf-description {
    font-size: 10px;
    color: #777;
    margin-bottom: 8px;
}

/* Input fields */
.cbf-field input,
.cbf-field textarea,
.cbf-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.cbf-field input:focus,
.cbf-field textarea:focus,
.cbf-field select:focus {
    border-color: #d3a33d;
    outline: none;
}

/* Navigation buttons */
.cbf-navigation {
    margin-top: 30px;
    text-align: right;
}

.cbf-navigation .cbf-prev,
.cbf-navigation .cbf-next,
.cbf-navigation input[type="submit"] {
    padding: 12px 24px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cbf-prev {
    background: #eee;
    color: #333;
    margin-right: 10px;
}

.cbf-next,
.cbf-navigation input[type="submit"] {
    background: #d3a33d;
    color: #fff;
}

.cbf-next:hover,
.cbf-navigation input[type="submit"]:hover {
    background: #202020;
}

.cbf-prev:hover {
    background: #ddd;
}

/* Gallery */
.cbf-gallery-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cbf-gallery-option {
    position: relative;
    text-align: center;
}

.cbf-gallery-option input[type="radio"]{
    display: none;
}

.cbf-gallery-option img {
    max-width: 100%;
    border: 2px solid transparent!important;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.cbf-gallery-option input[type="radio"]:checked + div img {
	border: 2px solid #d3a33d!important;
    box-shadow: 0 0 10px rgba(211, 163, 61, 0.5);
    transform: scale(1.05);
}

.cbf-image-wrapper {
    display: inline-block;
    position: relative;
}

/* Zoom link */
.cbf-image-zoom {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d3a33d;
    color: white;
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
}
.cbf-image-zoom:hover {
    background: #202020;
}

/* Radio buttons */
.cbf-radio-option {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cbf-radio-option.selected {
    background: #d3a33d;
    border-color: #d3a33d;
    color: #fff;
}
.cbf-radio-option input[type="radio"] {
    display: none;
}

/* Checkbox buttons */
.cbf-checkbox-option {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cbf-checkbox-option.selected {
    background: #d3a33d;
    border-color: #d3a33d;
    color: #fff;
}
.cbf-checkbox-option input[type="checkbox"] {
    display: none;
}

/* Terms checkbox */
.cbf-terms-privacy {
    margin: 20px 0;
}
.cbf-checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}
.cbf-checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}
.cbf-checkbox-text {
    font-size: 14px;
    line-height: 1.4;
}
.cbf-checkbox-text a {
    color: #d3a33d;
    text-decoration: underline;
}
.cbf-checkbox-text a:hover {
    color: #202020;
    text-decoration: none;
}

/* Message overlay */
#cbf-messages {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 800px;
    z-index: 10;
    padding: 15px 20px;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    transition: all 0.3s ease;
}

#cbf-messages.error,
#cbf-messages.success {
    display: block;
}

#cbf-messages.error {
    background-color: #fef2f2;
    border: 1px solid #f5c2c7;
    color: red;
}

#cbf-messages.success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: green;
}

/* Contact info */

.cbf-contact-info{
	display: flex;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 0;
    align-self: baseline;
}

.cbf-contact-form-img-wrapper{
	width:33%;
}

.cbf-contact-form-img-wrapper img{
	border-radius:6px;
}

.cbf-contact-form-data-wrapper{
	width:77%;
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.cbf-contact-form-data-wrapper p{
	margin:0;
}

.cbf-contact-form-data-wrapper a{
	color:#d3a33d;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #cbf-form-container {
        flex-direction: column;
    }

    form#cbf-form {
        flex-direction: column-reverse;
    }

    #cbf-stepper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    #cbf-steps {
        padding: 20px;
    }

    .cbf-field-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .cbf-col-25,
    .cbf-col-33,
    .cbf-col-50,
    .cbf-col-100 {
        grid-column: span 1 !important;
    }

    .cbf-navigation {
        text-align: center;
    }

    #cbf-messages {
        width: 90%;
    }
	
	.cbf-gallery-options {
    grid-template-columns: repeat(2, 1fr);
	}
}
