/* Styles configuration */
:root {
    --cf7-font: inherit;
    --cf7-font-size: 1rem;
    --cf7-font-weight: inherit;
    --cf7-labels: #ffffff;
    --cf7-input-text: #333333;
    --cf7-accent: #ffffff;
    --cf7-accent-hover: #ffeeee;
    --cf7-accent-outline: #ffffff;
    --cf7-accent-text: #ffffff;
    --cf7-warning: #bb0000;
    --cf7-warning-bg: #FFEDEC;
    --cf7-success: #00bb00;
    --cf7-success-bg: #def7bc;
}
/* General Settings */
label {
	color: var(--cf7-accent); 
	font-size: 0.75em;
	line-height: 1.4; 
}
.wpcf7 {
    font-family: var(--cf7-font);
    font-weight: var(--cf7-font-weight);
    width: 100% !important;
}
.wpcf7 label {
    color: var(--cf7-labels);
}
.wpcf7-list-item {
    margin-left: 0 !important;
    margin-right: 15px !important;
}
.wpcf7 a {
    color: var(--cf7-accent) !important;
    text-decoration: none;
}
.wpcf7 a:hover {
    color: var(--cf7-accent-hover) !important;
}
/* General Inputs */
.wpcf7 input[type=color],
.wpcf7 input[type=date],
.wpcf7 input[type=datetime-local],
.wpcf7 input[type=datetime],
.wpcf7 input[type=email],
.wpcf7 input[type=month],
.wpcf7 input[type=number],
.wpcf7 input[type=search],
.wpcf7 input[type=tel],
.wpcf7 input[type=text],
.wpcf7 input[type=time],
.wpcf7 input[type=url],
.wpcf7 input[type=week],
.wpcf7 textarea, 
.wpcf7 select
{
    border: 1px solid #cccccc;
	background-color: #ffffff;
	border-radius: 12px !important;
    line-height: 1.5;
    padding: .5rem .75rem;
    color: var(--cf7-input-text);
    min-height: calc(1.5em + 1rem + 2px);
    font-size: var(--cf7-font-size);
    font-weight: var(--cf7-font-weight);
    font-family: var(--cf7-font);
    width: 100%;

}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 1rem + 2px);
    padding: .5rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #3c3c41;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #c4c4c6;
    border-radius: 12px;
}

/* Other Inputs */

.wpcf7 input[type=submit] {
    background: linear-gradient(270deg, rgb(0, 170, 221) 0%, rgb(136, 187, 68) 100%);
    background-color: var(--wp--preset--color--contrast);
    border-width: 0;
	border: 0 !important;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--roboto-slab);
    font-size: clamp(0.951rem, 0.951rem + ((1vw - 0.2rem) * 0.767), 1.44rem);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.075rem;
    line-height: inherit;
    padding: 1rem 2.25rem !important;
    text-decoration: none;
    text-transform: none;
}
.wpcf7 input:hover[type=submit] {
    color: #000000;
    transition: .2s linear;
    cursor: pointer;
}

/*
.wpcf7 input[type=submit] {
    background-color: var(--cf7-accent);
    color: var(--cf7-accent-text);
    border: 0;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: var(--cf7-font-size);
    font-family: var(--cf7-font);
    transition: .2s linear;
	cursor: pointer; 
}
.wpcf7 input:hover[type=submit] {
    background-color: var(--cf7-accent-hover);
    transition: .2s linear;
    cursor: pointer;
}
*/

.wpcf7 input:focus[type=submit] {
    background-color: var(--cf7-accent-hover);
    outline: none;
    border: 0;
    box-shadow: 0 0 0 3px var(--cf7-accent-outline);
}
.wpcf7 input[type=file] {
    color: var(--cf7-input-text);
    font-size: var(--cf7-font-size);
    font-weight: var(--cf7-font-weight);
    font-family: var(--cf7-font);
}
.wpcf7 input:focus[type=file] {
    outline: none;
    border: 0;
}
.wpcf7 input[type=file]::file-selector-button,
.wpcf7 select
{
    border: 1px solid #cccccc;
    background-color: #ffffff;
    border-radius: 12px;
    line-height: 1.5;
    padding: .5rem .75rem;
    color: var(--cf7-input-text);
    min-height: calc(1.5em + 1rem + 2px);
    font-size: var(--cf7-font-size);
    font-weight: var(--cf7-font-weight);
    font-family: var(--cf7-font);
}
.wpcf7 input[type=file]::file-selector-button {
    cursor: pointer;
    margin-right: 20px;
}
/* Custom Checkbox */
.wpcf7 input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid var(--cf7-accent);
    border-radius: 12px;
    margin: 0;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.wpcf7 input[type="checkbox"]:before {
    content: "\f147";
    font-family: 'dashicons';
    font-weight: 300;
    font-size: 25px;
    line-height: 27px;
    width: 28px;
    height: 28px;
    color: white;
    text-align: center;
    border-radius: 12px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 30px 30px var(--cf7-accent);
}
.wpcf7 input[type="checkbox"]:checked::before {
    transform: scale(1);
}
.wpcf7-checkbox label,
.wpcf7-acceptance label,
.wpcf7-radio label {
	color: #8899aa;
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Custom Radio */
.wpcf7 input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--cf7-accent);
    width: 28px;
    height: 28px;
    border: 2px solid var(--cf7-accent);
    border-radius: 100%;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.wpcf7 input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1.5em 1.5em var(--cf7-accent);
}
.wpcf7 input[type="radio"]:checked::before {
    transform: scale(1);
}
/* Other States */
.wpcf7 input:hover[type=color],
.wpcf7 input:hover[type=date],
.wpcf7 input:hover[type=datetime-local],
.wpcf7 input:hover[type=datetime],
.wpcf7 input:hover[type=email],
.wpcf7 input:hover[type=month],
.wpcf7 input:hover[type=number],
.wpcf7 input:hover[type=search],
.wpcf7 input:hover[type=tel],
.wpcf7 input:hover[type=text],
.wpcf7 input:hover[type=time],
.wpcf7 input:hover[type=url],
.wpcf7 input:hover[type=week],
.wpcf7 input:hover[type=file]::file-selector-button,
.wpcf7 textarea:hover,
.wpcf7 select:hover
{
    border: 1px solid #cccc11;
    outline: none;
    background-color: #ffffff;
    font-size: var(--cf7-font-size);
}
.wpcf7 input:focus[type=color],
.wpcf7 input:focus[type=date],
.wpcf7 input:focus[type=datetime-local],
.wpcf7 input:focus[type=datetime],
.wpcf7 input:focus[type=email],
.wpcf7 input:focus[type=month],
.wpcf7 input:focus[type=number],
.wpcf7 input:focus[type=search],
.wpcf7 input:focus[type=tel],
.wpcf7 input:focus[type=text],
.wpcf7 input:focus[type=time],
.wpcf7 input:focus[type=url],
.wpcf7 input:focus[type=week],
.wpcf7 input:focus[type="checkbox"],
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.wpcf7 a:focus
{
    border: 1px solid #cccc11;
    outline:none;
    box-shadow: 0 0 0 3px var(--cf7-accent-outline);
    background-color: #ffffff;
}
/* Invalid Fields */
.wpcf7-not-valid-tip {
    color: var(--cf7-warning) !important;
    font-size: var(--cf7-font-size) !important;
    font-weight: var(--cf7-font-weight) !important;
}
.wpcf7-not-valid:not(input[type=file]):not(span){
    border-color: #FFBAB6 !important;
    background-color: #FFFAFA !important;
}
.wpcf7 input:disabled[type=submit],
.wpcf7 input:disabled[type=submit]:hover
{
    color: #ffffff;
    background-color: #ccc;
    border:0;
    cursor: not-allowed;
}
/* Response Messages */
.wpcf7 form.init .wpcf7-response-output {
    display: none;
}
.wpcf7 form .wpcf7-response-output { /* Default */
    margin: 15px 0 !important;
    padding: 10px 20px !important;
    border: 0 !important;
    border-radius: 6px !important;
}
.wpcf7 form.sent .wpcf7-response-output { /* Success */
    background-color: var(--cf7-success-bg) !important;
    color: var(--cf7-success) !important;
    border: 0 !important;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output{ /* Failed */
    background-color: var(--cf7-warning-bg) !important;
    color: var(--cf7-warning) !important;
    border: 0 !important;
}

/* Container für Radiobuttons */
.custom-radio-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 900px;
}

.wpcf7-list-item-label {
	font-size: 1.1rem !important;
	color: var(--cf7-labels);
}

/* Einzelner "Button" */
.custom-radio {
  position: relative;
  cursor: pointer;
  flex: 1 1 48%; /* Zwei nebeneinander, aber responsive */
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #efefef;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.radio-icon {
  margin-right: 1rem;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.radio-text {
  font-size: 1rem;
  color: #333;
}

/* Hover-Effekt */
.custom-radio:hover .radio-content,
.custom-radio input[type="radio"]:focus + .radio-content {
  background-color: #999900;
  color: #fff;
}

/* Aktives Element (ausgewählt) */
.custom-radio:has(input[type="radio"]:checked) .radio-content {
  background-color: #cccc11;
  color: #fff;
  border-color: #cccc11;
}

/* Responsiv: untereinander auf kleinen Screens */
@media (max-width: 600px) {
  .custom-radio {
    flex: 1 1 100%;
  }
}