/* Plasma Pen - Gravity Forms international phone field */

.gform_wrapper.gravity-theme .gfield--type-phone .gform-phone {
    width: 100%;
}

/* Unified telephone field */
.gform_wrapper.gravity-theme .gfield--type-phone .gform-phone__input-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 56px !important;
    border: 2px solid #e1e1e1 !important;
    border-radius: 12px !important;
    background: #f5f5f5 !important;
    box-sizing: border-box !important;
}

/* Reset inherited theme spacing */
.gform_wrapper.gravity-theme .gfield--type-phone .ginput_country-selector_container,
.gform_wrapper.gravity-theme .gfield--type-phone .ginput_phone_container {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.gform_wrapper.gravity-theme .gfield--type-phone .ginput_country-selector_container {
    flex: 0 0 115px !important;
    width: 115px !important;
}

.gform_wrapper.gravity-theme .gfield--type-phone .ginput_phone_container {
    flex: 1 1 0 !important;
    width: auto !important;
}

/* Country selector */
.gform_wrapper.gravity-theme .gfield--type-phone .gform-phone__country-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #222 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Telephone input */
.gform_wrapper.gravity-theme .gfield--type-phone input.gform-phone__input {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 12px 12px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

.gform_wrapper.gravity-theme .gfield--type-phone input.gform-phone__input:focus {
    outline: none !important;
}

/* Hide redundant sub-labels */
.gform_wrapper.gravity-theme .gfield--type-phone .gform-field-label--type-sub {
    display: none !important;
}

/* Main label */
.gform_wrapper.gravity-theme .gfield--type-phone > .gfield_label {
    position: static !important;
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    transform: none !important;
}

/* Focus styling */
.gform_wrapper.gravity-theme .gfield--type-phone .gform-phone__input-wrapper:focus-within {
    border-color: #777 !important;
}

/* Preserve dropdown visibility */
.gform_wrapper.gravity-theme .gfield--type-phone .gform-phone__dropdown.gform-phone__dropdown--hidden {
    display: none !important;
}
