/**
 * IAO Ready Talk Widget Styles
 * Layout a due colonne: sinistra (titolo + dropdown), destra (testo + email + bottone)
 */

.iao-ready-talk {
    width: 100%;
    box-sizing: border-box;
}

.iao-ready-talk__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.iao-ready-talk__left,
.iao-ready-talk__right {
    flex: 1;
    min-width: 280px;
}

/* Colonna Sinistra */
.iao-ready-talk__left {
    display: flex;
    flex-direction: column;
}

.iao-ready-talk__title {
    margin: 0 0 20px 0;
    /* Tipografia gestita da Elementor Group_Control_Typography */
}

.iao-ready-talk__label {
    margin: 0 0 10px 0;
    /* Tipografia gestita da Elementor Group_Control_Typography */
}

.iao-ready-talk__select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.iao-ready-talk__select-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* height/background-color gestiti da Elementor */
    pointer-events: none;
}

.iao-ready-talk__select {
    width: 100%;
    padding: 12px 30px 12px 0;
    /* Tipografia gestita da Elementor Group_Control_Typography */
    background-color: transparent;
    border-style: solid;
    border-bottom-style: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.iao-ready-talk__select:hover {
    border-color: #555;
}

.iao-ready-talk__select:focus {
    border-color: #ff0000;
}

.iao-ready-talk__select option {
    padding: 10px;
    background-color: #fff;
}

/* Colonna Destra */
.iao-ready-talk__right {
    display: flex;
    flex-direction: column;
}

.iao-ready-talk__top-right {
    align-self: flex-end;
    margin: 0 0 10px 0;
    font-size: 0.875rem;
    line-height: 1.2;
    opacity: 0.9;
}

.iao-ready-talk__subtitle {
    margin: 0 0 20px 0;
    /* Tipografia gestita da Elementor Group_Control_Typography */
}

.iao-ready-talk__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iao-ready-talk__email {
    width: 100%;
    padding: 12px;
    /* Tipografia gestita da Elementor Group_Control_Typography */
    border-style: solid;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.iao-ready-talk__email::placeholder {
    /* colore placeholder gestito da Elementor */
    opacity: 1;
}

.iao-ready-talk__email:hover {
    border-color: #555;
}

.iao-ready-talk__email:focus {
    border-color: #ff0000;
}

.iao-ready-talk__button {
    padding: 15px 30px;
    /* Tipografia gestita da Elementor Group_Control_Typography */
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    outline: none;
}

.iao-ready-talk__button:hover {
    /* background/text hover gestiti da Elementor */
}

.iao-ready-talk__button:active {
    opacity: 0.9;
}

.iao-ready-talk__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.iao-ready-talk__message {
    margin-top: 15px;
    padding: 10px;
    /* Tipografia gestita da Elementor Group_Control_Typography */
    border-radius: 4px;
}

.iao-ready-talk__message--success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.iao-ready-talk__message--error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.iao-ready-talk__error {
    padding: 15px;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .iao-ready-talk__inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .iao-ready-talk__left,
    .iao-ready-talk__right {
        width: 100%;
        min-width: 100%;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .iao-ready-talk__select,
.elementor-editor-active .iao-ready-talk__email,
.elementor-editor-active .iao-ready-talk__button {
    pointer-events: auto;
}
